This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[VMS/committed]: Do not define __size_t on VMS
- From: Tristan Gingold <gingold at adacore dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 9 Mar 2012 14:05:09 +0100
- Subject: [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