summaryrefslogtreecommitdiff
path: root/include/config-win.h
diff options
context:
space:
mode:
authorVladislav Vaintroub <vvaintroub@mysql.com>2009-09-30 22:10:22 +0200
committerVladislav Vaintroub <vvaintroub@mysql.com>2009-09-30 22:10:22 +0200
commit4acaca0202ccf1beb553a670121a25b15965be59 (patch)
tree6e1d50710af632760b55f10ac9de00ba97a8394f /include/config-win.h
parent14c2cfb568e081ef66e4b6aadfc9611dd0f4be88 (diff)
downloadmariadb-git-4acaca0202ccf1beb553a670121a25b15965be59.tar.gz
backport of
Revision: 2597.72.1 revid:sp1r-Reggie@core.-20080403153947-15243 removed instances of __NT__ from code. We now only build "NT" binaries
Diffstat (limited to 'include/config-win.h')
-rw-r--r--include/config-win.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/include/config-win.h b/include/config-win.h
index 514a762d6d8..725b4fdf07b 100644
--- a/include/config-win.h
+++ b/include/config-win.h
@@ -177,7 +177,7 @@ typedef uint rf_SetTimer;
#define SIZEOF_CHARP 4
#endif
#define HAVE_BROKEN_NETINET_INCLUDES
-#ifdef __NT__
+#ifdef _WIN32
#define HAVE_NAMED_PIPE /* We can only create pipes on NT */
#endif
@@ -290,11 +290,6 @@ inline ulonglong double2ulonglong(double d)
#define strcasecmp stricmp
#define strncasecmp strnicmp
-#ifndef __NT__
-#undef FILE_SHARE_DELETE
-#define FILE_SHARE_DELETE 0 /* Not implemented on Win 98/ME */
-#endif
-
#ifdef NOT_USED
#define HAVE_SNPRINTF /* Gave link error */
#define _snprintf snprintf
@@ -344,7 +339,7 @@ inline ulonglong double2ulonglong(double d)
#define thread_safe_increment(V,L) InterlockedIncrement((long*) &(V))
#define thread_safe_decrement(V,L) InterlockedDecrement((long*) &(V))
/* The following is only used for statistics, so it should be good enough */
-#ifdef __NT__ /* This should also work on Win98 but .. */
+#ifdef _WIN32
#define thread_safe_add(V,C,L) InterlockedExchangeAdd((long*) &(V),(C))
#define thread_safe_sub(V,C,L) InterlockedExchangeAdd((long*) &(V),-(long) (C))
#endif