From 1b4032c74e36dfdbb2ba0063796dd7c2b924babd Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 22 Nov 2017 08:05:36 +0300 Subject: Explore possibility of supporting mingw --- mysql/my_config.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'mysql/my_config.h') 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. -- cgit v1.1