diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2013-03-18 16:53:23 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-03-18 17:15:55 +0100 |
commit | 58d8ad3678d988c86f94a8de3a6c5800336b5800 (patch) | |
tree | 90aa018fa8c0799632fce0c7c045701064d2c218 /mdds | |
parent | fix Wundef in cppunit (diff) | |
download | core-58d8ad3678d988c86f94a8de3a6c5800336b5800.tar.gz core-58d8ad3678d988c86f94a8de3a6c5800336b5800.zip |
fix Wundef in mdds
Change-Id: I5abf3c7c71b3d0d26194dd89067b1b0a2cea4fde
Diffstat (limited to 'mdds')
-rw-r--r-- | mdds/UnpackedTarball_mdds.mk | 1 | ||||
-rw-r--r-- | mdds/wundef.patch | 42 |
2 files changed, 43 insertions, 0 deletions
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<const node*, void> + { + 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 <stdexcept> + +-#if UNIT_TEST ++#ifdef UNIT_TEST + #include <iostream> + 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 <iostream> + #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; |