diff options
author | Mikael Ronstrom <mikael@mysql.com> | 2009-03-06 19:25:38 +0100 |
---|---|---|
committer | Mikael Ronstrom <mikael@mysql.com> | 2009-03-06 19:25:38 +0100 |
commit | c6a6820ed71783397415ea2b2be888532f772474 (patch) | |
tree | 693c371ac654e6e1e691e2588e4d8856d10ee9a2 /storage/innobase/include/univ.i | |
parent | ea9e898bed696ca2a984aa144d70be85da3e9710 (diff) | |
download | mariadb-git-c6a6820ed71783397415ea2b2be888532f772474.tar.gz |
Add support for Atomic instructions for Windows
Enables Google patch support on Windows
Diffstat (limited to 'storage/innobase/include/univ.i')
-rw-r--r-- | storage/innobase/include/univ.i | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/storage/innobase/include/univ.i b/storage/innobase/include/univ.i index 6415e3dc6b3..d1d5439349f 100644 --- a/storage/innobase/include/univ.i +++ b/storage/innobase/include/univ.i @@ -144,6 +144,14 @@ by one. */ #define UNIV_SYNC_ATOMIC #endif +#if defined(WIN_ATOMICS32) || defined(WIN_ATOMICS64) +/* + * We have a full set of atomic ops available - we will use them + * This is on Windows + */ +#define UNIV_SYNC_ATOMIC +#endif + /* #define UNIV_SQL_DEBUG #define UNIV_LOG_DEBUG |