summaryrefslogtreecommitdiff
path: root/tests/test_document.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_document.cpp')
-rw-r--r--tests/test_document.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/test_document.cpp b/tests/test_document.cpp
index 46f0ff4..97ba1d9 100644
--- a/tests/test_document.cpp
+++ b/tests/test_document.cpp
@@ -1,3 +1,6 @@
+#define _CRT_SECURE_NO_WARNINGS
+#define _CRT_NONSTDC_NO_DEPRECATE 0
+
#include <string.h> // because Borland's STL is braindead, we have to include <string.h> _before_ <string> in order to get memcpy
#include "common.hpp"
@@ -12,10 +15,6 @@
#include <string>
-#ifdef _MSC_VER
-#pragma warning(disable: 4996)
-#endif
-
TEST(document_create)
{
pugi::xml_document doc;