From cd55f83c52e8e1de1d954998e83adc31b706c08b Mon Sep 17 00:00:00 2001 From: sb Date: Mon, 11 Jan 2010 17:39:05 +0100 Subject: [PATCH] sb118: work around problem that defines OPTIONAL (clashing e.g. with com::sun::star::beans::PropertyAttribute::OPTIONAL) --- cppunit/makefile.mk | 2 +- cppunit/windows.patch | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 cppunit/windows.patch diff --git a/cppunit/makefile.mk b/cppunit/makefile.mk index 43cef0c4f606..040120da060e 100644 --- a/cppunit/makefile.mk +++ b/cppunit/makefile.mk @@ -37,7 +37,7 @@ TARFILE_NAME = cppunit-1.12.1 # from -PATCH_FILES = solarisfinite.patch warnings.patch +PATCH_FILES = solarisfinite.patch warnings.patch windows.patch # solarisfinite.patch: see # warnings.patch: see ++#if defined(OPTIONAL) // set within windows.h ++#undef OPTIONAL ++#endif + #endif + #define CPPUNIT_PLUGIN_IMPLEMENT_MAIN() \ + BOOL APIENTRY DllMain( HANDLE, DWORD, LPVOID ) \