summaryrefslogtreecommitdiff
path: root/include/global.h
diff options
context:
space:
mode:
authormonty@donna.mysql.com <>2000-08-21 03:01:16 +0300
committermonty@donna.mysql.com <>2000-08-21 03:01:16 +0300
commitd79b0cc9cc03f05e279dc21235e7916ca8bfc5e2 (patch)
treef537ea3d07420a6c53e98f021e4f87a52fd7d313 /include/global.h
parentc8de0b3f3d56e5aca2baffac687f561684e748b2 (diff)
parentaa3580924bb1a036a5b4ce7c6f4c930499eb09e2 (diff)
downloadmariadb-git-d79b0cc9cc03f05e279dc21235e7916ca8bfc5e2.tar.gz
Merge monty@work:/home/bk/mysql into donna.mysql.com:/home/my/bk/mysql
Diffstat (limited to 'include/global.h')
-rw-r--r--include/global.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/global.h b/include/global.h
index 4f1e7156597..9cffcbf477b 100644
--- a/include/global.h
+++ b/include/global.h
@@ -113,6 +113,12 @@
#define HAVE_ATOMIC_SUB
#endif
+/* In Linux-ia64 including atomic.h will give us an error */
+#if defined(HAVE_LINUXTHREADS) && defined(__GNUC__) && defined(__ia64__)
+#undef HAVE_ATOMIC_ADD
+#undef HAVE_ATOMIC_SUB
+#endif
+
#if defined(_lint) && !defined(lint)
#define lint
#endif
@@ -207,6 +213,7 @@
#endif
/* Define void to stop lint from generating "null effekt" comments */
+#ifndef DONT_DEFINE_VOID
#ifdef _lint
int __void__;
#define VOID(X) (__void__ = (int) (X))
@@ -214,6 +221,7 @@ int __void__;
#undef VOID
#define VOID(X) (X)
#endif
+#endif /* DONT_DEFINE_VOID */
#if defined(_lint) || defined(FORCE_INIT_OF_VARS)
#define LINT_INIT(var) var=0 /* No uninitialize-warning */
@@ -515,6 +523,8 @@ typedef long my_ptrdiff_t;
#define NEAR /* Who needs segments ? */
#define FAR /* On a good machine */
#define HUGE_PTR
+#endif
+#ifndef STDCALL
#define STDCALL
#endif