From 0cee740c95496210d62206a21e8bc9adebf4fa4d Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Tue, 17 Jan 2017 16:13:54 +0100 Subject: replace #ifdef SOLARIS with #ifdef __sun Check for a macro that is defined by the compiler, we don't really need one defined by the build system. Change-Id: Iccb8e3198396881395c97a6b81690ebe64b7e9d2 --- sax/test/saxdemo.cxx | 4 ++-- sax/test/testcomponent.cxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sax/test') diff --git a/sax/test/saxdemo.cxx b/sax/test/saxdemo.cxx index 419ce7ea799b..baab11f86780 100644 --- a/sax/test/saxdemo.cxx +++ b/sax/test/saxdemo.cxx @@ -470,7 +470,7 @@ void OFileWriter::closeOutput() // Needed to switch on solaris threads -#ifdef SOLARIS +#ifdef __sun extern "C" void ChangeGlobalInit(); #endif int main (int argc, char **argv) @@ -480,7 +480,7 @@ int main (int argc, char **argv) printf( "usage : saxdemo inputfile outputfile\n" ); exit( 0 ); } -#ifdef SOLARIS +#ifdef __sun // switch on threads in solaris ChangeGlobalInit(); #endif diff --git a/sax/test/testcomponent.cxx b/sax/test/testcomponent.cxx index 339ee621f290..8380b3b43de2 100644 --- a/sax/test/testcomponent.cxx +++ b/sax/test/testcomponent.cxx @@ -42,7 +42,7 @@ using namespace ::com::sun::star::lang; using namespace ::com::sun::star::registry; // Needed to switch on solaris threads -#ifdef SOLARIS +#ifdef __sun extern "C" void ChangeGlobalInit(); #endif @@ -53,7 +53,7 @@ int main (int argc, char **argv) printf( "usage : testcomponent service dll [additional dlls]\n" ); exit( 0 ); } -#ifdef SOLARIS +#ifdef __sun // switch on threads in solaris ChangeGlobalInit(); #endif -- cgit