This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
MinGW and lib/CORE/Win32.h
authorSisyphus <sisyphus1@optusnet.com.au>
Wed, 4 Jan 2006 21:29:19 +0000 (08:29 +1100)
committerSteve Hay <SteveHay@planit.com>
Thu, 5 Jan 2006 16:22:50 +0000 (16:22 +0000)
From: "Sisyphus" <sisyphus1@optusnet.com.au>
Message-ID: <024301c61119$bca4a840$e201140a@desktop>

p4raw-id: //depot/perl@26659

win32/win32.h

index f318890..e56c4df 100644 (file)
@@ -230,6 +230,17 @@ typedef long               gid_t;
 #  endif
 #endif
 
+/* <stdint.h>, pulled in by <io.h> as of mingw-runtime-3.3, typedef's
+ * (u)intptr_t but doesn't set the _(U)INTPTR_T_DEFINED defines */
+#ifdef _STDINT_H
+#  ifndef _INTPTR_T_DEFINED
+#    define _INTPTR_T_DEFINED
+#  endif
+#  ifndef _UINTPTR_T_DEFINED
+#    define _UINTPTR_T_DEFINED
+#  endif
+#endif
+
 #endif /* __MINGW32__ */
 
 /* both GCC/Mingw32 and MSVC++ 4.0 are missing this, so we put it here */