From: Kedzierski, A. C. N. C. <art...@na...> - 2006-03-31 17:42:18
|
Hi, The fxdefs.h file uses 'long long' for one of the typedefs. This causes an error on GCC compilers when using '-pedantic' option to enable strict conformance to the ANSI standard. A way to fix this problem is to use __extension__ in fxdefs.h. This is how stdint.h handles it. The patch below applies to fxdefs.h in Fox v1.4.x. I haven't tried 1.6.x. The same patch can be found in the attachment. --- fxdefs.h 2006-03-31 09:03:44.000000000 -0800 +++ fxdefs.h.mine 2006-03-31 09:25:32.000000000 -0800 @@ -349,7 +349,12 @@ #elif defined(_MSC_VER) || (defined(__BCPLUSPLUS__) && __BORLANDC__ > 0x500) || defined(__WATCOM_INT64__) typedef unsigned __int64 FXulong; typedef __int64 FXlong; -#elif defined(__GNUG__) || defined(__GNUC__) || defined(__SUNPRO_CC) || defined(__MWERKS__) || defined(__SC__) || defined(_LONGLONG) +#elif defined(__GNUG__) || defined(__GNUC__) +__extension__ +typedef unsigned long long FXulong; +__extension__ +typedef long long FXlong; +#elif defined(__SUNPRO_CC) || defined(__MWERKS__) || defined(__SC__) || defined(_LONGLONG) typedef unsigned long long FXulong; typedef long long FXlong; #else -- Artur Kedzierski |