diff options
author | unknown <serg@serg.mylan> | 2005-06-05 19:38:52 +0200 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2005-06-05 19:38:52 +0200 |
commit | 062a1b8b4e09c6de8ab592d37567d40d13798875 (patch) | |
tree | 550377a80809b332035bbee0c834c1909c73047e /include/my_global.h | |
parent | d6e0883b070cbb66a3dc94384816835964025aba (diff) | |
download | mariadb-git-062a1b8b4e09c6de8ab592d37567d40d13798875.tar.gz |
a compiler must see '#pragma implementation' *before*
'#pragma interface' (that comes with the #include'd header file)
Diffstat (limited to 'include/my_global.h')
-rw-r--r-- | include/my_global.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/include/my_global.h b/include/my_global.h index c978bf82b3a..523ecfba74d 100644 --- a/include/my_global.h +++ b/include/my_global.h @@ -43,16 +43,11 @@ #define HAVE_ERRNO_AS_DEFINE #endif /* __CYGWIN__ */ -/* Determine when to use "#pragma interface" */ -#if !defined(__CYGWIN__) && !defined(__INTEL_COMPILER) && defined(__GNUC__) && (__GNUC__ < 3) +/* to make command line shorter we'll define USE_PRAGMA_INTERFACE here */ +#ifdef USE_PRAGMA_IMPLEMENTATION #define USE_PRAGMA_INTERFACE #endif -/* Determine when to use "#pragma implementation" */ -#if !defined(__INTEL_COMPILER) && defined(__GNUC__) && (__GNUC__ < 3) -#define USE_PRAGMA_IMPLEMENTATION -#endif - #if defined(i386) && !defined(__i386__) #define __i386__ #endif |