Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Sep 2013 22:04:55 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r255194 - in head/sys: mips/include powerpc/include
Message-ID:  <201309032204.r83M4t2M051011@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Tue Sep  3 22:04:55 2013
New Revision: 255194
URL: http://svnweb.freebsd.org/changeset/base/255194

Log:
  Newer versions of gcc define __INT64_C and __UINT64_C, so avoid
  redefining them if gcc provides them.

Modified:
  head/sys/mips/include/_stdint.h
  head/sys/powerpc/include/_stdint.h

Modified: head/sys/mips/include/_stdint.h
==============================================================================
--- head/sys/mips/include/_stdint.h	Tue Sep  3 21:30:42 2013	(r255193)
+++ head/sys/mips/include/_stdint.h	Tue Sep  3 22:04:55 2013	(r255194)
@@ -66,6 +66,7 @@
 
 #if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS)
 
+#ifndef __INT64_C
 #ifdef __mips_n64
 #define __INT64_C(c)              (c ## L)
 #define __UINT64_C(c)             (c ## UL)
@@ -73,6 +74,7 @@
 #define __INT64_C(c)              (c ## LL)
 #define __UINT64_C(c)             (c ## ULL)
 #endif
+#endif
 
 /*
  * ISO/IEC 9899:1999

Modified: head/sys/powerpc/include/_stdint.h
==============================================================================
--- head/sys/powerpc/include/_stdint.h	Tue Sep  3 21:30:42 2013	(r255193)
+++ head/sys/powerpc/include/_stdint.h	Tue Sep  3 22:04:55 2013	(r255194)
@@ -65,6 +65,7 @@
 
 #if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS)
 
+#ifndef __INT64_C
 #ifdef __LP64__
 #define	__INT64_C(c)		(c ## L)
 #define	__UINT64_C(c)		(c ## UL)
@@ -72,6 +73,7 @@
 #define	__INT64_C(c)		(c ## LL)
 #define	__UINT64_C(c)		(c ## ULL)
 #endif
+#endif
 
 /*
  * ISO/IEC 9899:1999



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309032204.r83M4t2M051011>