diff options
author | Brian Paul <[email protected]> | 2006-11-15 19:54:25 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2006-11-15 19:54:25 +0000 |
commit | 11a54c38f7d9c84da591ff084590c9928ac4ee0d (patch) | |
tree | 0ed4fe944503d682e3a1e6c995bea49961608dd3 /src/mesa/main | |
parent | 12e710c8501df502a61638612f75f738f7796b89 (diff) |
#define LONGSTRING __extension__ in imports.h and use it to silence gcc
warnings about long string literals.
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/imports.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h index 9fb02a7e9cd..dad2767e72d 100644 --- a/src/mesa/main/imports.h +++ b/src/mesa/main/imports.h @@ -55,6 +55,15 @@ extern "C" { #define NULL 0 #endif + +/** gcc -pedantic warns about long string literals, LONGSTRING silences that */ +#if !defined(__GNUC__) || (__GNUC__ < 2) || \ + ((__GNUC__ == 2) && (__GNUC_MINOR__ <= 7)) +# define LONGSTRING +#else +# define LONGSTRING __extension__ +#endif + /*@}*/ |