# HG changeset patch # User Ryan C. Gordon # Date 1221428704 0 # Node ID 39b9405d3cb6c6103777f109a7feebbe06747b91 # Parent cab9823cb55ea9d3af6bef7dca15e2b0645feb4d Deal with ELF underscores on Solaris with Sun Studio. Fixes Bugzilla #595. diff -r cab9823cb55e -r 39b9405d3cb6 src/hermes/HeadMMX.h --- a/src/hermes/HeadMMX.h Mon Sep 08 07:33:05 2008 +0000 +++ b/src/hermes/HeadMMX.h Sun Sep 14 21:45:04 2008 +0000 @@ -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 diff -r cab9823cb55e -r 39b9405d3cb6 src/hermes/HeadX86.h --- a/src/hermes/HeadX86.h Mon Sep 08 07:33:05 2008 +0000 +++ b/src/hermes/HeadX86.h Sun Sep 14 21:45:04 2008 +0000 @@ -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