Kaydet (Commit) b8ecfd83 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Undef RGB where it was defined, not where it gets used

Change-Id: I274958964292f78c802748e17fca7f265ae5a4b8
Reviewed-on: https://gerrit.libreoffice.org/20429Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 7b69dd64
...@@ -762,6 +762,7 @@ def generate(includes, libname, filename, module): ...@@ -762,6 +762,7 @@ def generate(includes, libname, filename, module):
// Cleanup windows header macro pollution. // Cleanup windows header macro pollution.
#ifdef WNT #ifdef WNT
# include <postwin.h> # include <postwin.h>
# undef RGB
#endif #endif
""" """
f.write(ado_define) f.write(ado_define)
......
...@@ -72,6 +72,7 @@ ...@@ -72,6 +72,7 @@
// Cleanup windows header macro pollution. // Cleanup windows header macro pollution.
#ifdef WNT #ifdef WNT
# include <postwin.h> # include <postwin.h>
# undef RGB
#endif #endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include <prewin.h> #include <prewin.h>
#include <postwin.h> #include <postwin.h>
#undef NOMINMAX #undef NOMINMAX
#undef RGB
#endif #endif
#include <iostream> #include <iostream>
......
...@@ -29,9 +29,6 @@ ...@@ -29,9 +29,6 @@
#include <docpool.hxx> #include <docpool.hxx>
#include <formula/vectortoken.hxx> #include <formula/vectortoken.hxx>
// RGB is leaked macro from wingdi.h which conflicts in Office/Common.hxx.
#undef RGB
#include <officecfg/Office/Common.hxx> #include <officecfg/Office/Common.hxx>
#include <svl/broadcast.hxx> #include <svl/broadcast.hxx>
......
...@@ -121,6 +121,7 @@ ...@@ -121,6 +121,7 @@
// Cleanup windows header macro pollution. // Cleanup windows header macro pollution.
#ifdef WNT #ifdef WNT
# include <postwin.h> # include <postwin.h>
# undef RGB
#endif #endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -28,11 +28,7 @@ ...@@ -28,11 +28,7 @@
#include <com/sun/star/xml/crypto/DigestID.hpp> #include <com/sun/star/xml/crypto/DigestID.hpp>
#include <com/sun/star/xml/crypto/CipherID.hpp> #include <com/sun/star/xml/crypto/CipherID.hpp>
#include <cppuhelper/supportsservice.hxx> #include <cppuhelper/supportsservice.hxx>
// RGB is leaked macro from wingdi.h which conflicts in Office/Common.hxx.
#undef RGB
#include <officecfg/Office/Common.hxx> #include <officecfg/Office/Common.hxx>
#include <sal/types.h> #include <sal/types.h>
#include <rtl/instance.hxx> #include <rtl/instance.hxx>
#include <rtl/bootstrap.hxx> #include <rtl/bootstrap.hxx>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment