From 72335eba68c5ce56ad917b2c5edbca4fe18251d3 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 14 Sep 2008 21:45:04 +0000 Subject: [PATCH] Deal with ELF underscores on Solaris with Sun Studio. Fixes Bugzilla #595. --HG-- branch : SDL-1.2 --- src/hermes/HeadMMX.h | 2 +- src/hermes/HeadX86.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hermes/HeadMMX.h b/src/hermes/HeadMMX.h index 11cf6da5b..5d9850cca 100644 --- a/src/hermes/HeadMMX.h +++ b/src/hermes/HeadMMX.h @@ -46,7 +46,7 @@ void ConvertMMXp32_16RGB555(); /* 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 --git a/src/hermes/HeadX86.h b/src/hermes/HeadX86.h index 54e0cc9d7..fc6b6dddd 100644 --- a/src/hermes/HeadX86.h +++ b/src/hermes/HeadX86.h @@ -74,7 +74,7 @@ extern int ConvertX86p16_32BGRA888_LUT_X86[512]; /* 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