aboutsummaryrefslogtreecommitdiff
path: root/mysql/my_config.h
diff options
context:
space:
mode:
Diffstat (limited to 'mysql/my_config.h')
-rw-r--r--mysql/my_config.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/mysql/my_config.h b/mysql/my_config.h
index 71b15dc..bba6b42 100644
--- a/mysql/my_config.h
+++ b/mysql/my_config.h
@@ -103,7 +103,7 @@
# define SIZEOF_LONG 4
# define SIZEOF_LONG_LONG 8
# define SIZEOF_OFF_T 4
-# define SIZEOF_TIME_T 8
+# define SIZEOF_TIME_T 4
# endif
#endif
@@ -163,6 +163,14 @@
#endif
/*
+ * Specific for POSIX and MinGW.
+ */
+#if !defined(_WIN32) || defined(__GNUC__)
+# define HAVE_GCC_ATOMIC_BUILTINS 1
+# define HAVE_GCC_SYNC_BUILTINS 1
+#endif
+
+/*
* Specific for POSIX.
*/
#ifndef _WIN32
@@ -223,8 +231,6 @@
# define HAVE_BUILTIN_UNREACHABLE 1
# define HAVE_BUILTIN_EXPECT 1
# define HAVE_BUILTIN_STPCPY 1
-# define HAVE_GCC_ATOMIC_BUILTINS 1
-# define HAVE_GCC_SYNC_BUILTINS 1
/*
* Specific for Windows.