summaryrefslogtreecommitdiff
path: root/include/my_global.h
diff options
context:
space:
mode:
authorunknown <msvensson@pilot.blaudden>2007-04-24 13:59:44 +0200
committerunknown <msvensson@pilot.blaudden>2007-04-24 13:59:44 +0200
commitf692f710b759cc697176405aedd39bf094240269 (patch)
tree42c8f80f7c7f62ad29db840fd214f00005504af4 /include/my_global.h
parent90bb6c54f2c79b4e40b73c5aba63e693b2eb59a2 (diff)
parentbf5833bde89d08e00b87ec9c25c75ee2c836e512 (diff)
downloadmariadb-git-f692f710b759cc697176405aedd39bf094240269.tar.gz
Merge pilot.blaudden:/home/msvensson/mysql/bug25118/my50-bug25118
into pilot.blaudden:/home/msvensson/mysql/mysql-5.0-maint include/my_global.h: Auto merged include/my_sys.h: Auto merged
Diffstat (limited to 'include/my_global.h')
-rw-r--r--include/my_global.h38
1 files changed, 1 insertions, 37 deletions
diff --git a/include/my_global.h b/include/my_global.h
index d4f9223ccac..f446c283d50 100644
--- a/include/my_global.h
+++ b/include/my_global.h
@@ -505,43 +505,7 @@ typedef unsigned short ushort;
#define my_const_cast(A) (A)
#endif
-/*
- Disable __attribute__() on gcc < 2.7, g++ < 3.4, and non-gcc compilers.
- Some forms of __attribute__ are actually supported in earlier versions of
- g++, but we just disable them all because we only use them to generate
- compilation warnings.
-*/
-#ifndef __attribute__
-# if !defined(__GNUC__)
-# define __attribute__(A)
-# elif GCC_VERSION < 2008
-# define __attribute__(A)
-# elif defined(__cplusplus) && GCC_VERSION < 3004
-# define __attribute__(A)
-# endif
-#endif
-
-/*
- __attribute__((format(...))) is only supported in gcc >= 2.8 and g++ >= 3.4
- But that's already covered by the __attribute__ tests above, so this is
- just a convenience macro.
-*/
-#ifndef ATTRIBUTE_FORMAT
-# define ATTRIBUTE_FORMAT(style, m, n) __attribute__((format(style, m, n)))
-#endif
-
-/*
-
- __attribute__((format(...))) on a function pointer is not supported
- until gcc 3.1
-*/
-#ifndef ATTRIBUTE_FORMAT_FPTR
-# if (GCC_VERSION >= 3001)
-# define ATTRIBUTE_FORMAT_FPTR(style, m, n) ATTRIBUTE_FORMAT(style, m, n)
-# else
-# define ATTRIBUTE_FORMAT_FPTR(style, m, n)
-# endif /* GNUC >= 3.1 */
-#endif
+#include <my_attribute.h>
/*
Wen using the embedded library, users might run into link problems,