]> sourceware.org Git - newlib-cygwin.git/commitdiff
* include/stdlib.h: Don't include stdint.h. Conditionally define intptr_t.
authorDanny Smith <dannysmith@users.sourceforge.net>
Wed, 13 Jun 2007 07:43:58 +0000 (07:43 +0000)
committerDanny Smith <dannysmith@users.sourceforge.net>
Wed, 13 Jun 2007 07:43:58 +0000 (07:43 +0000)
* include/io.h: Likewise.

winsup/mingw/ChangeLog
winsup/mingw/include/io.h
winsup/mingw/include/stdlib.h

index ae7d1ec67d6dd08bfd8ceb280c1f6d354f3f5149..09eb25c195246255d4f17db19cc753f7bfbc3325 100644 (file)
@@ -1,3 +1,8 @@
+2007-06-13  Danny Smith  <dannysmith@users.sourceforge.net>
+
+       * include/stdlib.h: Don't include stdint.h.  Conditionally define intptr_t.
+       * include/io.h: Likewise.
+
 2007-06-11  Danny Smith  <dannysmith@users.sourceforge.net>
 
        * crt1.c (__mingw_CRTStartup): Add explicit call to gcc's __main.
index cfab09880c319c876b60a37180421b6337cb6e71..d980726b11e5d5b5470952789a7fb0b674814a95 100644 (file)
@@ -18,7 +18,6 @@
  *       an inclusion of sys/types.h */
 
 #include <sys/types.h> /* To get time_t.  */
-#include <stdint.h>  /* For intptr_t.  */
 
 /*
  * Attributes of files as returned by _findfirst et al.
 
 #ifndef RC_INVOKED
 
+#ifndef _INTPTR_T_DEFINED
+#define _INTPTR_T_DEFINED
+#ifdef _WIN64
+  typedef __int64 intptr_t;
+#else
+  typedef int intptr_t;
+#endif
+#endif
+
 #ifndef        _FSIZE_T_DEFINED
 typedef        unsigned long   _fsize_t;
 #define _FSIZE_T_DEFINED
index dd407b12fd2d5e157cbe9ee9a834bb561e40a65d..c973af02abc64ecfd160121271d65b870c8d0061 100644 (file)
@@ -21,8 +21,6 @@
 #include <stddef.h>
 #endif /* RC_INVOKED */
 
-#include <stdint.h> /* For uintptr_t */
-
 /*
  * RAND_MAX is the maximum value that may be returned by rand.
  * The minimum is zero.
@@ -441,6 +439,14 @@ _CRTIMP int __cdecl _set_error_mode (int);
 #define _REPORT_ERRMODE        3
 
 #if __MSVCRT_VERSION__ >= 0x800
+#ifndef _INTPTR_T_DEFINED
+#define _INTPTR_T_DEFINED
+#ifdef _WIN64
+  typedef __int64 intptr_t;
+#else
+  typedef int intptr_t;
+#endif
+#endif
 _CRTIMP unsigned int __cdecl _set_abort_behavior (unsigned int, unsigned int);
 /* These masks work with msvcr80.dll version 8.0.50215.44 (a beta release).  */
 #define _WRITE_ABORT_MSG 1
This page took 0.034646 seconds and 5 git commands to generate.