From b8ecfd83bac98ea58a435c59856da8fd94f5c6d9 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 7 Dec 2015 08:38:12 +0100 Subject: Undef RGB where it was defined, not where it gets used Change-Id: I274958964292f78c802748e17fca7f265ae5a4b8 Reviewed-on: https://gerrit.libreoffice.org/20429 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- bin/update_pch | 1 + connectivity/inc/pch/precompiled_ado.hxx | 1 + sc/qa/unit/helper/debughelper.hxx | 1 + sc/qa/unit/ucalc_formula.cxx | 3 --- xmlsecurity/inc/pch/precompiled_xsec_xmlsec.hxx | 1 + xmlsecurity/source/xmlsec/nss/nssinitializer.cxx | 4 ---- 6 files changed, 4 insertions(+), 7 deletions(-) diff --git a/bin/update_pch b/bin/update_pch index 47c2d15a4644..a21b0692b6d1 100755 --- a/bin/update_pch +++ b/bin/update_pch @@ -762,6 +762,7 @@ def generate(includes, libname, filename, module): // Cleanup windows header macro pollution. #ifdef WNT # include +# undef RGB #endif """ f.write(ado_define) diff --git a/connectivity/inc/pch/precompiled_ado.hxx b/connectivity/inc/pch/precompiled_ado.hxx index 1f4b17ca83ad..5e7ce61533f4 100644 --- a/connectivity/inc/pch/precompiled_ado.hxx +++ b/connectivity/inc/pch/precompiled_ado.hxx @@ -72,6 +72,7 @@ // Cleanup windows header macro pollution. #ifdef WNT # include +# undef RGB #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/qa/unit/helper/debughelper.hxx b/sc/qa/unit/helper/debughelper.hxx index 509f4aff72fc..0143d6e6908c 100644 --- a/sc/qa/unit/helper/debughelper.hxx +++ b/sc/qa/unit/helper/debughelper.hxx @@ -21,6 +21,7 @@ #include #include #undef NOMINMAX +#undef RGB #endif #include diff --git a/sc/qa/unit/ucalc_formula.cxx b/sc/qa/unit/ucalc_formula.cxx index b5eafc24cc80..69b46bb85b22 100644 --- a/sc/qa/unit/ucalc_formula.cxx +++ b/sc/qa/unit/ucalc_formula.cxx @@ -29,9 +29,6 @@ #include #include - -// RGB is leaked macro from wingdi.h which conflicts in Office/Common.hxx. -#undef RGB #include #include diff --git a/xmlsecurity/inc/pch/precompiled_xsec_xmlsec.hxx b/xmlsecurity/inc/pch/precompiled_xsec_xmlsec.hxx index 4bf9b0023ca2..49dce9e75508 100644 --- a/xmlsecurity/inc/pch/precompiled_xsec_xmlsec.hxx +++ b/xmlsecurity/inc/pch/precompiled_xsec_xmlsec.hxx @@ -121,6 +121,7 @@ // Cleanup windows header macro pollution. #ifdef WNT # include +# undef RGB #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/xmlsecurity/source/xmlsec/nss/nssinitializer.cxx b/xmlsecurity/source/xmlsec/nss/nssinitializer.cxx index b903c38592e4..136c8d6b79d6 100644 --- a/xmlsecurity/source/xmlsec/nss/nssinitializer.cxx +++ b/xmlsecurity/source/xmlsec/nss/nssinitializer.cxx @@ -28,11 +28,7 @@ #include #include #include - -// RGB is leaked macro from wingdi.h which conflicts in Office/Common.hxx. -#undef RGB #include - #include #include #include -- cgit