[Libreoffice-commits] core.git: basic/qa sd/source sfx2/source

Takeshi Abe tabe at fixedpoint.jp
Mon May 22 20:01:10 UTC 2017


 basic/qa/cppunit/test_vba.cxx                  |    2 +-
 sd/source/ui/remotecontrol/BluetoothServer.cxx |    2 +-
 sfx2/source/appl/shutdownicon.cxx              |    4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

New commits:
commit f060adefba5f67ec20d755cf1d95d49b62686ee5
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date:   Fri May 19 17:27:48 2017 +0900

    Test _WIN32 instead of WIN32
    
    since the former is predefined by Visual C++ [0], but the latter
    is not.
    
    [0] https://msdn.microsoft.com/en-us/library/b0084kay.aspx
    
    Change-Id: I9ecb84779cbaf5f0186ef0b05da61b32293f8f2b
    Reviewed-on: https://gerrit.libreoffice.org/37808
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Michael Stahl <mstahl at redhat.com>

diff --git a/basic/qa/cppunit/test_vba.cxx b/basic/qa/cppunit/test_vba.cxx
index 8b46d739f81d..ddd640d371d4 100644
--- a/basic/qa/cppunit/test_vba.cxx
+++ b/basic/qa/cppunit/test_vba.cxx
@@ -10,7 +10,7 @@
 #include <comphelper/processfactory.hxx>
 #include <unotools/syslocaleoptions.hxx>
 
-#ifdef WIN32
+#ifdef _WIN32
 #include <string.h>
 
 #include <windows.h>
diff --git a/sd/source/ui/remotecontrol/BluetoothServer.cxx b/sd/source/ui/remotecontrol/BluetoothServer.cxx
index bf68261e95e1..c5ad4e20d18c 100644
--- a/sd/source/ui/remotecontrol/BluetoothServer.cxx
+++ b/sd/source/ui/remotecontrol/BluetoothServer.cxx
@@ -1307,7 +1307,7 @@ void SAL_CALL BluetoothServer::run()
     mpImpl->mpConnection = nullptr;
     mpImpl->mpContext = nullptr;
 
-#elif defined(WIN32)
+#elif defined(_WIN32)
     WORD wVersionRequested;
     WSADATA wsaData;
 
diff --git a/sfx2/source/appl/shutdownicon.cxx b/sfx2/source/appl/shutdownicon.cxx
index 09bb40aa1a9b..8d02091f5c45 100644
--- a/sfx2/source/appl/shutdownicon.cxx
+++ b/sfx2/source/appl/shutdownicon.cxx
@@ -81,7 +81,7 @@ using namespace ::com::sun::star::ui::dialogs;
 using namespace ::sfx2;
 
 #ifdef ENABLE_QUICKSTART_APPLET
-# if !defined(WIN32) && !defined(MACOSX)
+# if !defined(_WIN32) && !defined(MACOSX)
 extern "C" { static void SAL_CALL thisModule() {} }
 # endif
 #endif
@@ -137,7 +137,7 @@ bool LoadModule()
     if (boost::logic::indeterminate(loaded))
     {
 #ifdef ENABLE_QUICKSTART_APPLET
-#  ifdef WIN32
+#  ifdef _WIN32
         pInitSystray = win32_init_sys_tray;
         pDeInitSystray = win32_shutdown_sys_tray;
         loaded = true;


More information about the Libreoffice-commits mailing list