From 58d8ad3678d988c86f94a8de3a6c5800336b5800 Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Mon, 18 Mar 2013 16:53:23 +0100 Subject: fix Wundef in mdds Change-Id: I5abf3c7c71b3d0d26194dd89067b1b0a2cea4fde --- mdds/UnpackedTarball_mdds.mk | 1 + mdds/wundef.patch | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 mdds/wundef.patch (limited to 'mdds') diff --git a/mdds/UnpackedTarball_mdds.mk b/mdds/UnpackedTarball_mdds.mk index 702086da0b67..0f1de080c9df 100644 --- a/mdds/UnpackedTarball_mdds.mk +++ b/mdds/UnpackedTarball_mdds.mk @@ -17,6 +17,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,mdds,\ mdds/mdds_0.6.0.patch \ mdds/0001-Workaround-for-gcc-bug.patch \ mdds/mdds_0.7.0_unreachable_warning.patch.1 \ + mdds/wundef.patch \ )) $(eval $(call gb_UnpackedTarball_mark_output_files,mdds,\ diff --git a/mdds/wundef.patch b/mdds/wundef.patch new file mode 100644 index 000000000000..628f3ddf6731 --- /dev/null +++ b/mdds/wundef.patch @@ -0,0 +1,42 @@ +--- misc/mdds_0.6.0/include/mdds/segment_tree.hpp ++++ misc/build/mdds_0.6.0/include/mdds/segment_tree.hpp +@@ -285,7 +285,7 @@ public: + } + }; + +-#if UNIT_TEST ++#ifdef UNIT_TEST + struct node_printer : public ::std::unary_function + { + void operator() (const node* p) const +--- misc/mdds_0.6.0/include/mdds/multi_type_vector_def.inl ++++ misc/build/mdds_0.6.0/include/mdds/multi_type_vector_def.inl +@@ -29,7 +29,7 @@ + + #include + +-#if UNIT_TEST ++#ifdef UNIT_TEST + #include + using std::cout; + using std::endl; +--- misc/mdds_0.6.0/include/mdds/mixed_type_matrix_flag_storage.hpp ++++ misc/build/mdds_0.6.0/include/mdds/mixed_type_matrix_flag_storage.hpp +@@ -25,7 +25,7 @@ + * + ************************************************************************/ + +-#if UNIT_TEST ++#ifdef UNIT_TEST + #include + #endif + +@@ -74,7 +74,7 @@ public: + // Flag is stored at this position. Remove it. + m_flags.erase(itr); + } +-#if UNIT_TEST ++#ifdef UNIT_TEST + void dump() const + { + using namespace std; -- cgit