From daa0970b597247eaf49ae4ccbed8ce8ba50a98ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Thu, 19 Jan 2017 12:29:04 -0800 Subject: [PATCH] Cleanup. --- tests/test.h | 4 ---- tests/vector_complex_test.cpp | 6 +++++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test.h b/tests/test.h index 33c3cf7..db71019 100644 --- a/tests/test.h +++ b/tests/test.h @@ -13,8 +13,4 @@ #include "dbg.h" -#if !BX_COMPILER_MSVC -# define _strdup strdup -#endif // !BX_COMPILER_MSVC - #endif // __TEST_H__ diff --git a/tests/vector_complex_test.cpp b/tests/vector_complex_test.cpp index 8deaa3f..a540ece 100644 --- a/tests/vector_complex_test.cpp +++ b/tests/vector_complex_test.cpp @@ -33,6 +33,10 @@ #include #include +#if !BX_COMPILER_MSVC +# define _strdup strdup +#endif // !BX_COMPILER_MSVC + struct complex { complex() {data = 0;} complex(const char* s) { data = strdup(s); } @@ -156,7 +160,7 @@ TEST(vector_complex_popback) { v.push_back("24"); CHECK(v.back() == "24"); - + v.pop_back(); CHECK(v.back() == "12");