Deal with ELF underscores on Solaris with Sun Studio. SDL-1.2
authorRyan C. Gordon <icculus@icculus.org>
Sun, 14 Sep 2008 21:45:04 +0000
branchSDL-1.2
changeset 415239b9405d3cb6
parent 4151 cab9823cb55e
child 4153 e66db1af0714
Deal with ELF underscores on Solaris with Sun Studio.

Fixes Bugzilla #595.
src/hermes/HeadMMX.h
src/hermes/HeadX86.h
     1.1 --- a/src/hermes/HeadMMX.h	Mon Sep 08 07:33:05 2008 +0000
     1.2 +++ b/src/hermes/HeadMMX.h	Sun Sep 14 21:45:04 2008 +0000
     1.3 @@ -46,7 +46,7 @@
     1.4  
     1.5  /* Fix the underscore business with ELF compilers */
     1.6  
     1.7 -#if defined(__ELF__) && defined(__GNUC__)
     1.8 +#if (defined(__ELF__) && defined(__GNUC__)) || defined(__SUNPRO_C)
     1.9    #ifdef __cplusplus 
    1.10    extern "C" {   
    1.11    #endif
     2.1 --- a/src/hermes/HeadX86.h	Mon Sep 08 07:33:05 2008 +0000
     2.2 +++ b/src/hermes/HeadX86.h	Sun Sep 14 21:45:04 2008 +0000
     2.3 @@ -74,7 +74,7 @@
     2.4  
     2.5  /* Now fix up the ELF underscore problem */
     2.6  
     2.7 -#if defined(__ELF__) && defined(__GNUC__)
     2.8 +#if (defined(__ELF__) && defined(__GNUC__)) || defined(__SUNPRO_C)
     2.9    #ifdef __cplusplus
    2.10    extern "C" {
    2.11    #endif