summaryrefslogtreecommitdiff
path: root/sax
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2017-01-17 16:13:54 +0100
committerMichael Stahl <mstahl@redhat.com>2017-01-17 16:38:33 +0100
commit0cee740c95496210d62206a21e8bc9adebf4fa4d (patch)
tree4a1ff295046962418b30ac244314dfee5fb92fb5 /sax
parentb170265a6bba70faf1cb4172834586f4f45dd2bf (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.cxx4
-rw-r--r--sax/test/testcomponent.cxx4
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