mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-02-26 05:40:49 +00:00
add FLUID_RESTRICT
for restrict pointers
This commit is contained in:
parent
f2cf1f82c7
commit
9178eebf39
1 changed files with 10 additions and 0 deletions
|
@ -59,6 +59,16 @@ void fluid_time_config(void);
|
||||||
|
|
||||||
|
|
||||||
/* Misc */
|
/* Misc */
|
||||||
|
#if defined(__INTEL_COMPILER)
|
||||||
|
#define FLUID_RESTRICT restrict
|
||||||
|
#elif defined(__clang__) || defined(__GNUC__) || defined(__GNUG__)
|
||||||
|
#define FLUID_RESTRICT __restrict__
|
||||||
|
#elif defined(_MSC_VER)
|
||||||
|
#define FLUID_RESTRICT __restrict
|
||||||
|
#else
|
||||||
|
#warning "Dont know how this compiler handles restrict pointers, refuse to use them."
|
||||||
|
#define FLUID_RESTRICT
|
||||||
|
#endif
|
||||||
|
|
||||||
#define FLUID_INLINE inline
|
#define FLUID_INLINE inline
|
||||||
#define FLUID_POINTER_TO_UINT GPOINTER_TO_UINT
|
#define FLUID_POINTER_TO_UINT GPOINTER_TO_UINT
|
||||||
|
|
Loading…
Reference in a new issue