This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[VMS/committed]: Do not define __size_t on VMS


as it is already defined and used by the system headers.

No regressions for x86_64-darwin after full bootstrap.

Tristan.

2012-03-09  Tristan Gingold  <gingold@adacore.com>

	* ginclude/stddef.h: Do not define __size_t on VMS.

diff --git a/gcc/ginclude/stddef.h b/gcc/ginclude/stddef.h
index 8a03948e..ebe0190 100644
--- a/gcc/ginclude/stddef.h
+++ b/gcc/ginclude/stddef.h
@@ -203,6 +203,8 @@ typedef __PTRDIFF_TYPE__ ptrdiff_t;
 #if (defined (__FreeBSD__) && (__FreeBSD__ >= 5)) \
   || defined(__FreeBSD_kernel__)
 /* __size_t is a typedef on FreeBSD 5, must not trash it. */
+#elif defined (VMS)
+/* __size_t is also a typedef on VMS.  */
 #else
 #define __size_t
 #endif


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]