summaryrefslogtreecommitdiff
path: root/include/my_pthread.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/my_pthread.h')
-rw-r--r--include/my_pthread.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/my_pthread.h b/include/my_pthread.h
index f5bfda49a28..c81f3ec7d40 100644
--- a/include/my_pthread.h
+++ b/include/my_pthread.h
@@ -30,7 +30,7 @@ extern "C" {
#define EXTERNC
#endif /* __cplusplus */
-#if defined(__WIN__)
+#if defined(_WIN32)
typedef CRITICAL_SECTION pthread_mutex_t;
typedef DWORD pthread_t;
typedef struct thread_attr {
@@ -104,7 +104,6 @@ int pthread_cancel(pthread_t thread);
#define ETIMEDOUT 145 /* Win32 doesn't have this */
#endif
-#define getpid() GetCurrentThreadId()
#define HAVE_LOCALTIME_R 1
#define _REENTRANT 1
#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
@@ -278,7 +277,7 @@ struct tm *gmtime_r(const time_t *clock, struct tm *res);
#define HAVE_PTHREAD_KILL 1
#endif
-#endif /* defined(__WIN__) */
+#endif /* defined(_WIN32) */
#if defined(HPUX10) && !defined(DONT_REMAP_PTHREAD_FUNCTIONS)
#undef pthread_cond_timedwait