aboutsummaryrefslogtreecommitdiff
path: root/mysql/my_config.h
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-11-22 08:05:36 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-11-22 08:05:36 +0300
commit1b4032c74e36dfdbb2ba0063796dd7c2b924babd (patch)
treea700448990cea256eedec4d59b8b510ca03b8291 /mysql/my_config.h
parentb1471ebbe9db90c472ff356bea6a7c8aedb45db9 (diff)
Explore possibility of supporting mingwmingw
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.