Fixed bug where, under c89 mode, callback macros wouldn't work
Under c89 (only applies to GCC-like compilers), the variadic macro version would be used and compilation would fail.
This commit is contained in:
parent
363ed17d99
commit
666b80843a
@ -33,10 +33,10 @@
|
|||||||
* FG_COMPILER_SUPPORTS_VA_ARGS: if the compiler supports variadic macros
|
* FG_COMPILER_SUPPORTS_VA_ARGS: if the compiler supports variadic macros
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* What supports variadic macros based off Wikipedia article on it */
|
/* What supports variadic macros based off Wikipedia article on it (GCC-like must support C99 or higher to use variadic macros) */
|
||||||
#if (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)) || \
|
#if (((defined(__GNUC__) && (__GNUC__ >= 3)) || \
|
||||||
(defined(__GNUC__) && (__GNUC__ >= 3)) || \
|
(defined(__clang__))) && \
|
||||||
(defined(__clang__)) || \
|
(defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))) || \
|
||||||
(defined(_MSC_VER) && (_MSC_VER >= 1400)) || \
|
(defined(_MSC_VER) && (_MSC_VER >= 1400)) || \
|
||||||
(defined(__BORLANDC__) && (__BORLANDC__ >= 0x570)) || \
|
(defined(__BORLANDC__) && (__BORLANDC__ >= 0x570)) || \
|
||||||
(defined(__SUNPRO_C) && (__SUNPRO_C >= 0x530))
|
(defined(__SUNPRO_C) && (__SUNPRO_C >= 0x530))
|
||||||
|
Reference in New Issue
Block a user