[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [fluid-dev] About Supporting 2GiB+ Soundfonts on Windows
From: |
Reinhold Hoffmann |
Subject: |
Re: [fluid-dev] About Supporting 2GiB+ Soundfonts on Windows |
Date: |
Tue, 17 Mar 2020 06:31:36 +0100 |
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=address@hidden]
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 <address@hidden>
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
address@hidden
https://lists.nongnu.org/mailman/listinfo/fluid-dev
- [fluid-dev] About Supporting 2GiB+ Soundfonts on Windows, Tom M., 2020/03/16
- Re: [fluid-dev] About Supporting 2GiB+ Soundfonts on Windows, Dan Eble, 2020/03/16
- Re: [fluid-dev] About Supporting 2GiB+ Soundfonts on Windows,
Reinhold Hoffmann <=
- Re: [fluid-dev] About Supporting 2GiB+ Soundfonts on Windows, Tom M., 2020/03/17
- Re: [fluid-dev] About Supporting 2GiB+ Soundfonts on Windows, Carlo Bramini, 2020/03/17
- Re: [fluid-dev] About Supporting 2GiB+ Soundfonts on Windows, Tom M., 2020/03/17
- Re: [fluid-dev] About Supporting 2GiB+ Soundfonts on Windows, Carlo Bramini, 2020/03/19
- Re: [fluid-dev] About Supporting 2GiB+ Soundfonts on Windows, Tom M., 2020/03/21
- Re: [fluid-dev] About Supporting 2GiB+ Soundfonts on Windows, Ceresa Jean-Jacques, 2020/03/17
- Re: [fluid-dev] About Supporting 2GiB+ Soundfonts on Windows, Dan Eble, 2020/03/17