1
0
Fork 0

(svn r17358) -Fix: compilation was broken for gcc older than 3.4

release/1.0
smatz 2009-09-01 20:59:44 +00:00
parent bc3bdb03fd
commit 94988a79f3
1 changed files with 2 additions and 2 deletions

View File

@ -308,8 +308,8 @@ typedef unsigned char byte;
#define PERSONAL_DIR "" #define PERSONAL_DIR ""
#endif #endif
/* Compile time assertions */ /* Compile time assertions, disabled for OS/2 or GCC < 3.4 (GCC < 3 isn't supported anymore) */
#if defined(__OS2__) #if defined(__OS2__) || (defined(__GNUC__) && __GNUC__ == 3 && __GNUC_MINOR__ < 4)
#define assert_compile(expr) #define assert_compile(expr)
#else #else
#define assert_compile(expr) extern const int __ct_assert__[1 - 2 * !(expr)] UNUSED #define assert_compile(expr) extern const int __ct_assert__[1 - 2 * !(expr)] UNUSED