]> Cypherpunks repositories - gostls13.git/commitdiff
windows: replace remaining __MINGW32__ instances with _WIN32
authorJoe Poirier <jdpoirier@gmail.com>
Tue, 8 Feb 2011 20:42:52 +0000 (15:42 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 8 Feb 2011 20:42:52 +0000 (15:42 -0500)
R=rsc, brainman
CC=golang-dev
https://golang.org/cl/4146041

include/libc.h
include/u.h

index 1103bcf81149e7e149d66d2a878339cb2a9bf8a2..a91039dbf702e253baedd065c1fd2e8762512c7e 100644 (file)
@@ -291,7 +291,7 @@ extern      char*   getgoarch(void);
 extern char*   getgoroot(void);
 extern char*   getgoversion(void);
 
-#ifdef __MINGW32__
+#ifdef _WIN32
 struct timespec {
        int tv_sec;
        long tv_nsec;
index 3cc1f335c7788d14a5fdaa012338861745fb338a..690b2f616ffd90c89d9001684671f7b39f887ef9 100644 (file)
@@ -78,7 +78,7 @@ extern "C" {
 #define _NEEDUINT 1
 #define _NEEDULONG 1
 
-#ifdef __MINGW32__
+#ifdef _WIN32
 typedef jmp_buf sigjmp_buf;
 #endif
 typedef long p9jmp_buf[sizeof(sigjmp_buf)/sizeof(long)];
@@ -139,7 +139,7 @@ typedef long p9jmp_buf[sizeof(sigjmp_buf)/sizeof(long)];
 #      undef _NEEDUSHORT
 #      undef _NEEDUINT
 #      undef _NEEDULONG
-#elif defined(__MINGW32__)
+#elif defined(_WIN32)
 #else
        /* No idea what system this is -- try some defaults */
 #      include <pthread.h>
@@ -208,7 +208,7 @@ typedef u64int uint64;
  */
 #if defined(__GNUC__)
 #      undef strcmp    /* causes way too many warnings */
-#      if __GNUC__ >= 4 || (__GNUC__==3 && !defined(__APPLE_CC__) && !defined(__MINGW32__))
+#      if __GNUC__ >= 4 || (__GNUC__==3 && !defined(__APPLE_CC__) && !defined(_WIN32))
 #              undef AUTOLIB
 #              define AUTOLIB(x) int __p9l_autolib_ ## x __attribute__ ((weak));
 #              undef AUTOFRAMEWORK