[Libreoffice-commits] .: sd/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Dec 21 02:18:44 PST 2012


 sd/source/ui/remotecontrol/BluetoothServer.cxx |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

New commits:
commit d0d07cd2975c1fb783d0f8591dd3a4931d1c5be5
Author: Luboš Luňák <l.lunak at suse.cz>
Date:   Fri Dec 21 11:17:38 2012 +0100

    ugly workaround for msvc+ccache problem with gbuild MSC define
    
    Change-Id: I06ab10df77e2b3598f7268173206429596a50217

diff --git a/sd/source/ui/remotecontrol/BluetoothServer.cxx b/sd/source/ui/remotecontrol/BluetoothServer.cxx
index 22ca95b..16b1b15 100644
--- a/sd/source/ui/remotecontrol/BluetoothServer.cxx
+++ b/sd/source/ui/remotecontrol/BluetoothServer.cxx
@@ -32,9 +32,16 @@
   // LO vs WinAPI conflict
   #undef WB_LEFT
   #undef WB_RIGHT
-  #undef MSC // Unset a legacy define, as otherwise ws2bth.h breaks
   #include <winsock2.h>
+  // HACK: ws2bth.h defines a struct with a field named MSC, which is
+  // a #define set by gbuild. Plain #undef MSC here fails with MSVC
+  // used together with ccache (bug, presumably), so #define it to some
+  // other usable value.
+  #undef MSC
+  #define MSC mscfield
   #include <ws2bth.h>
+  #undef MSC
+  #define MSC
 #endif
 
 #ifdef __MINGW32__


More information about the Libreoffice-commits mailing list