Kaydet (Commit) 92a34086 authored tarafından Luboš Luňák's avatar Luboš Luňák

fix Wundef in cppunit

Change-Id: Ide5f9d36cf7e5e8cd3442a1b5f098a85cb8d6de0
üst 22771bab
......@@ -14,6 +14,7 @@ $(eval $(call gb_UnpackedTarball_set_tarball,cppunit,$(CPPUNIT_TARBALL)))
$(eval $(call gb_UnpackedTarball_add_patches,cppunit,\
cppunit/windows.patch \
cppunit/unix.patch \
cppunit/wundef.patch \
))
ifeq ($(OS),ANDROID)
$(eval $(call gb_UnpackedTarball_add_patches,cppunit,\
......
--- misc/cppunit-1.13.1/include/cppunit/Portability.h 2012-09-24 19:10:36.000000000 +0200
+++ misc/build/cppunit-1.13.1/include/cppunit/Portability.h 2013-03-18 14:23:48.880718714 +0100
@@ -68,6 +68,9 @@
* std::allocator. On some compilers, you may need to change this to
* std::allocator<T>.
*/
+#ifndef CPPUNIT_STD_NEED_ALLOCATOR /* avoid -Wundef warning */
+#define CPPUNIT_STD_NEED_ALLOCATOR 0
+#endif
#if CPPUNIT_STD_NEED_ALLOCATOR
# if !defined(CPPUNIT_STD_ALLOCATOR)
# define CPPUNIT_STD_ALLOCATOR std::allocator
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