We (still) use Visual Studio 2010 and use __int3264 which redirects to __int64 for 64 bit. =================================================== code snipset from BaseTsd.h which is part of VS2010 ===================================================
// // The INT_PTR is guaranteed to be the same size as a pointer. Its // size with change with pointer size (32/64). It should be used // anywhere that a pointer is cast to an integer type. UINT_PTR is // the unsigned variation. // // __int3264 is intrinsic to 64b MIDL but not to old MIDL or to C compiler. // #if defined(_WIN64) typedef __int64 INT_PTR, *PINT_PTR; typedef unsigned __int64 UINT_PTR, *PUINT_PTR; typedef __int64 LONG_PTR, *PLONG_PTR; typedef unsigned __int64 ULONG_PTR, *PULONG_PTR; #define __int3264 __int64 #else typedef _W64 int INT_PTR, *PINT_PTR; typedef _W64 unsigned int UINT_PTR, *PUINT_PTR; typedef _W64 long LONG_PTR, *PLONG_PTR; typedef _W64 unsigned long ULONG_PTR, *PULONG_PTR; #define __int3264 __int32 #endif =================================================== May be this can be used to be more downward compatible to older VS than VS2015. Reinhold -----Ursprüngliche Nachricht----- Von: fluid-dev [mailto:fluid-dev-bounces+reinhold=notation....@nongnu.org] Im Auftrag von Dan Eble Gesendet: Montag, 16. März 2020 23:24 An: FluidSynth mailing list Cc: Tom M. Betreff: Re: [fluid-dev] About Supporting 2GiB+ Soundfonts on Windows On Mar 16, 2020, at 09:57, Tom M. via fluid-dev <fluid-dev@nongnu.org> wrote: > The current workaround is to build fluidsynth with CygWin, which has "long" > set to 64bit. > > Any ideas how to solve this? Opinions on C99? If you decided to require C99, I would think you would want to use int64_t and its relatives for portability. Dan _______________________________________________ fluid-dev mailing list fluid-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/fluid-dev _______________________________________________ fluid-dev mailing list fluid-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/fluid-dev