[SVN] r4085 - branches/SDL-1.2/src/hermes

svn-owner at libsdl.org svn-owner at libsdl.org
Sun Sep 14 14:45:04 PDT 2008


Author: icculus
Date: 2008-09-14 14:45:04 -0700 (Sun, 14 Sep 2008)
New Revision: 4085

Modified:
   branches/SDL-1.2/src/hermes/HeadMMX.h
   branches/SDL-1.2/src/hermes/HeadX86.h
Log:
Deal with ELF underscores on Solaris with Sun Studio.

Fixes Bugzilla #595.


Modified: branches/SDL-1.2/src/hermes/HeadMMX.h
===================================================================
--- branches/SDL-1.2/src/hermes/HeadMMX.h	2008-09-08 07:38:41 UTC (rev 4084)
+++ branches/SDL-1.2/src/hermes/HeadMMX.h	2008-09-14 21:45:04 UTC (rev 4085)
@@ -46,7 +46,7 @@
 
 /* Fix the underscore business with ELF compilers */
 
-#if defined(__ELF__) && defined(__GNUC__)
+#if (defined(__ELF__) && defined(__GNUC__)) || defined(__SUNPRO_C)
   #ifdef __cplusplus 
   extern "C" {   
   #endif

Modified: branches/SDL-1.2/src/hermes/HeadX86.h
===================================================================
--- branches/SDL-1.2/src/hermes/HeadX86.h	2008-09-08 07:38:41 UTC (rev 4084)
+++ branches/SDL-1.2/src/hermes/HeadX86.h	2008-09-14 21:45:04 UTC (rev 4085)
@@ -74,7 +74,7 @@
 
 /* Now fix up the ELF underscore problem */
 
-#if defined(__ELF__) && defined(__GNUC__)
+#if (defined(__ELF__) && defined(__GNUC__)) || defined(__SUNPRO_C)
   #ifdef __cplusplus
   extern "C" {
   #endif




More information about the commits mailing list