summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-12-07 08:38:12 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-12-10 07:03:31 +0000
commitb8ecfd83bac98ea58a435c59856da8fd94f5c6d9 (patch)
tree8e5ebeceaec301a6aefcb017169794b6cff4a132 /xmlsecurity
parent7b69dd64be71d1420158a553fb5ec861039cb017 (diff)
Undef RGB where it was defined, not where it gets used
Change-Id: I274958964292f78c802748e17fca7f265ae5a4b8 Reviewed-on: https://gerrit.libreoffice.org/20429 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/inc/pch/precompiled_xsec_xmlsec.hxx1
-rw-r--r--xmlsecurity/source/xmlsec/nss/nssinitializer.cxx4
2 files changed, 1 insertions, 4 deletions
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 <postwin.h>
+# 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 <com/sun/star/xml/crypto/DigestID.hpp>
#include <com/sun/star/xml/crypto/CipherID.hpp>
#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 <sal/types.h>
#include <rtl/instance.hxx>
#include <rtl/bootstrap.hxx>