diff options
author | unknown <joerg@trift2.> | 2007-06-04 11:24:49 +0200 |
---|---|---|
committer | unknown <joerg@trift2.> | 2007-06-04 11:24:49 +0200 |
commit | 6ee217af72c1545e842ba72b1ceaf9e37b38f125 (patch) | |
tree | 0bb2b25762de3500390b04abe2f502cf291d6398 /include/config-win.h | |
parent | 2c06863b092dcd99907ded38bd188aa5ecdc3151 (diff) | |
parent | 0484d44eebff70ef5a2c328c7a9d50ac07a89409 (diff) | |
download | mariadb-git-6ee217af72c1545e842ba72b1ceaf9e37b38f125.tar.gz |
Merge trift2.:/MySQL/M51/mysql-5.1
into trift2.:/MySQL/M51/push-5.1
include/config-win.h:
Auto merged
mysql-test/mysql-test-run.pl:
Auto merged
mysql-test/t/disabled.def:
Auto merged
mysql-test/t/mysqltest.test:
Auto merged
mysql-test/t/ps.test:
Auto merged
sql/sql_parse.cc:
Auto merged
Diffstat (limited to 'include/config-win.h')
-rw-r--r-- | include/config-win.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/include/config-win.h b/include/config-win.h index 40ee3c65849..fa5c15b0668 100644 --- a/include/config-win.h +++ b/include/config-win.h @@ -348,7 +348,10 @@ inline double ulonglong2double(ulonglong value) #define SPRINTF_RETURNS_INT #define HAVE_SETFILEPOINTER #define HAVE_VIO_READ_BUFF +#if defined(_MSC_VER) && _MSC_VER >= 1400 +/* strnlen() appeared in Studio 2005 */ #define HAVE_STRNLEN +#endif #define HAVE_WINSOCK2 #define strcasecmp stricmp @@ -409,16 +412,7 @@ inline double ulonglong2double(ulonglong value) #ifdef __NT__ /* This should also work on Win98 but .. */ #define thread_safe_add(V,C,L) InterlockedExchangeAdd((long*) &(V),(C)) #define thread_safe_sub(V,C,L) InterlockedExchangeAdd((long*) &(V),-(long) (C)) -#define statistic_add(V,C,L) thread_safe_add((V),(C),(L)) -#else -#define thread_safe_add(V,C,L) \ - pthread_mutex_lock((L)); (V)+=(C); pthread_mutex_unlock((L)); -#define thread_safe_sub(V,C,L) \ - pthread_mutex_lock((L)); (V)-=(C); pthread_mutex_unlock((L)); -#define statistic_add(V,C,L) (V)+=(C) #endif -#define statistic_increment(V,L) thread_safe_increment((V),(L)) -#define statistic_decrement(V,L) thread_safe_decrement((V),(L)) #define shared_memory_buffer_length 16000 #define default_shared_memory_base_name "MYSQL" |