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

Luboš Luňák l.lunak at suse.cz
Thu Feb 14 10:31:56 PST 2013


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

New commits:
commit b60ccd4d4ddf4076085890938bcc08aca2737e15
Author: Luboš Luňák <l.lunak at suse.cz>
Date:   Thu Feb 14 18:23:49 2013 +0100

    fix build
    
    Caused by 185e1be6cd1954b8cc5a302c879384f2549cd060,
    fix is more or less d0d07cd2975c1fb783d0f8591dd3a4931d1c5be5.
    
    Change-Id: Ia7d228139126b3e60370b85c106bc970f4e68cce
    Reviewed-on: https://gerrit.libreoffice.org/2154
    Reviewed-by: Tor Lillqvist <tml at iki.fi>
    Tested-by: Tor Lillqvist <tml at iki.fi>

diff --git a/sd/source/ui/remotecontrol/BluetoothServer.cxx b/sd/source/ui/remotecontrol/BluetoothServer.cxx
index e877cca..7fa75ff 100644
--- a/sd/source/ui/remotecontrol/BluetoothServer.cxx
+++ b/sd/source/ui/remotecontrol/BluetoothServer.cxx
@@ -36,7 +36,15 @@
   #undef WB_LEFT
   #undef WB_RIGHT
   #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 MACOSX


More information about the Libreoffice-commits mailing list