diff options
author | Davi Arnaut <Davi.Arnaut@Sun.COM> | 2010-06-09 21:36:20 -0300 |
---|---|---|
committer | Davi Arnaut <Davi.Arnaut@Sun.COM> | 2010-06-09 21:36:20 -0300 |
commit | 2c8fd5fae86ffc41865ac4977760c26ddd6bf436 (patch) | |
tree | 5d38c809cf6dc4714834c80ead4701483e754dee /extra | |
parent | 5932330839daa3c211b7db81d0ce1b50b8b928f8 (diff) | |
parent | b564aa92abaa3feb1adbea13826c1ec37c856a63 (diff) | |
download | mariadb-git-2c8fd5fae86ffc41865ac4977760c26ddd6bf436.tar.gz |
Merge of mysql-5.0-bugteam into mysql-5.1-bugteam.
Diffstat (limited to 'extra')
-rw-r--r-- | extra/yassl/include/lock.hpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/extra/yassl/include/lock.hpp b/extra/yassl/include/lock.hpp index 7ce656522df..99829b0b6de 100644 --- a/extra/yassl/include/lock.hpp +++ b/extra/yassl/include/lock.hpp @@ -23,13 +23,21 @@ #ifndef yaSSL_LOCK_HPP #define yaSSL_LOCK_HPP +/* + Visual Studio Source Annotations header (sourceannotations.h) fails + to compile if outside of the global namespace. +*/ +#ifdef YASSL_THREAD_SAFE +#ifdef _WIN32 +#include <windows.h> +#endif +#endif namespace yaSSL { #ifdef YASSL_THREAD_SAFE #ifdef _WIN32 - #include <windows.h> class Mutex { CRITICAL_SECTION cs_; |