summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorunknown <anozdrin/alik@station.>2007-09-03 15:12:28 +0400
committerunknown <anozdrin/alik@station.>2007-09-03 15:12:28 +0400
commitd8928de731b18f8d894d98fea57b7b04fb8808db (patch)
tree8d6e3fd8ae81ab6a96ee17df7bdbca0c77f908da /include
parent50a80f1d7c9246c6cee62ce0fd4edab9a0702c6e (diff)
downloadmariadb-git-d8928de731b18f8d894d98fea57b7b04fb8808db.tar.gz
Make mysql compilable on gcc-4.2.1.
c++config.h now has the following code: // For example, <windows.h> is known to #define min and max as macros... #undef min #undef max So, our defines in my_global.h are undefined when <new> header is included. Move definitions of min()/max() to the end of my_global.h.
Diffstat (limited to 'include')
-rw-r--r--include/my_global.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/my_global.h b/include/my_global.h
index 8b6cdef8daa..12129523939 100644
--- a/include/my_global.h
+++ b/include/my_global.h
@@ -562,12 +562,6 @@ int __void__;
#define PURIFY_OR_LINT_INIT(var)
#endif
-/* Define some useful general macros */
-#if !defined(max)
-#define max(a, b) ((a) > (b) ? (a) : (b))
-#define min(a, b) ((a) < (b) ? (a) : (b))
-#endif
-
#if !defined(HAVE_UINT)
#undef HAVE_UINT
#define HAVE_UINT
@@ -1508,4 +1502,10 @@ inline void operator delete[](void*, void*) { /* Do nothing */ }
/* Length of decimal number represented by INT64. */
#define MY_INT64_NUM_DECIMAL_DIGITS 21
+/* Define some useful general macros (should be done after all headers). */
+#if !defined(max)
+#define max(a, b) ((a) > (b) ? (a) : (b))
+#define min(a, b) ((a) < (b) ? (a) : (b))
+#endif
+
#endif /* my_global_h */