diff options
author | Michael Stahl <mstahl@redhat.com> | 2017-01-17 16:13:54 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2017-01-17 16:38:33 +0100 |
commit | 0cee740c95496210d62206a21e8bc9adebf4fa4d (patch) | |
tree | 4a1ff295046962418b30ac244314dfee5fb92fb5 /sax | |
parent | b170265a6bba70faf1cb4172834586f4f45dd2bf (diff) |
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
Diffstat (limited to 'sax')
-rw-r--r-- | sax/test/saxdemo.cxx | 4 | ||||
-rw-r--r-- | sax/test/testcomponent.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
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 |