From 27f03902f589dbb136f0aad0aac5b304de62f603 Mon Sep 17 00:00:00 2001 From: johns <> Date: Thu, 20 Jun 2002 21:09:55 +0000 Subject: [PATCH] GCC 3.0 warnings can be removed, the use of gcc 2.96 is an error. --- src/include/freecraft.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/include/freecraft.h b/src/include/freecraft.h index 0263bc5c7..9afb663bb 100644 --- a/src/include/freecraft.h +++ b/src/include/freecraft.h @@ -86,19 +86,21 @@ #if __GNUC__==2 && __GNUC_MINOR__==96 -#warning "GCC 2.96 can't compile FreeCraft, downgrade to GCC 2.95" +#error "GCC 2.96 can't compile FreeCraft, downgrade to GCC 2.95" #endif -#if __GNUC__>=3 && !defined(__I_KNOW_THAT_GNUC_3_IS_UNSUPPORTED__) +#if __GNUC__>=3 + +#if !defined(__I_KNOW_THAT_GNUC_3_IS_UNSUPPORTED__) +#warning "GCC 3.XX is not supported, downgrade to GCC 2.95" +#endif // It looks that GCC 3.xx is becoming nutty: // __FUNCTION__ can't be concated in the future. // __func__ Is defined by ISO C99 as // static const char __func__[] = "function-name"; - #define __FUNCTION__ "Wrong compiler:"__FILE__ -#warning "GCC 3.XX is not supported, downgrade to GCC 2.95" #endif