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
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to