svn commit: r208738 - user/jmallett/octeon/sys/contrib/octeon-sdk

Juli Mallett jmallett at FreeBSD.org
Wed Jun 2 11:08:57 UTC 2010


Author: jmallett
Date: Wed Jun  2 11:08:56 2010
New Revision: 208738
URL: http://svn.freebsd.org/changeset/base/208738

Log:
  Spell typeof in the preferred way for the FreeBSD kernel.

Modified:
  user/jmallett/octeon/sys/contrib/octeon-sdk/cvmx-asm.h

Modified: user/jmallett/octeon/sys/contrib/octeon-sdk/cvmx-asm.h
==============================================================================
--- user/jmallett/octeon/sys/contrib/octeon-sdk/cvmx-asm.h	Wed Jun  2 11:06:03 2010	(r208737)
+++ user/jmallett/octeon/sys/contrib/octeon-sdk/cvmx-asm.h	Wed Jun  2 11:08:56 2010	(r208738)
@@ -225,12 +225,12 @@ extern "C" {
       unsigned long _v;							\
       ASM_STMT ("rdhwr\t%0,$31\n"					\
 		"\tsll\t%0,%0,0" : "=d"(_v));				\
-      result = (typeof(result))_v;					\
+      result = (__typeof__(result))_v;					\
     }									\
   } else {								\
     unsigned long _v;							\
     ASM_STMT ("rdhwr\t%0,$" CVMX_TMP_STR(regstr) : "=d"(_v));		\
-    result = (typeof(result))_v;					\
+    result = (__typeof__(result))_v;					\
   }})
   
 


More information about the svn-src-user mailing list