summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bx/tests/vector_complex_test.cpp
diff options
context:
space:
mode:
author Branimir Karadžić <branimirkaradzic@gmail.com>2017-02-05 13:56:35 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2017-02-05 13:56:35 +0100
commit1607745432f50099711d7aee355111111e66ff51 (patch)
treec4eaec8008f6e0283ca652cdffb55a34eca9b9bb /3rdparty/bx/tests/vector_complex_test.cpp
parent193e8c8a89a4be5c63909cdbbcca4d9d6f8fee02 (diff)
Update BGFX and BX (nw)
Diffstat (limited to '3rdparty/bx/tests/vector_complex_test.cpp')
-rw-r--r--3rdparty/bx/tests/vector_complex_test.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/3rdparty/bx/tests/vector_complex_test.cpp b/3rdparty/bx/tests/vector_complex_test.cpp
index 8deaa3fd3ff..a540ece8a40 100644
--- a/3rdparty/bx/tests/vector_complex_test.cpp
+++ b/3rdparty/bx/tests/vector_complex_test.cpp
@@ -33,6 +33,10 @@
#include <string.h>
#include <stdlib.h>
+#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");