From 9133322c4c39141a80f79f24755566128bb98c13 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine@gmail.com" Date: Sun, 19 Feb 2012 09:05:23 +0000 Subject: tests: Minor fixes for WinCE compilation git-svn-id: http://pugixml.googlecode.com/svn/trunk@834 99668b35-9821-0410-8761-19e4c4f06640 --- tests/test_document.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/test_document.cpp') diff --git a/tests/test_document.cpp b/tests/test_document.cpp index a49efcd..8b6ab8f 100644 --- a/tests/test_document.cpp +++ b/tests/test_document.cpp @@ -1,5 +1,6 @@ #define _CRT_SECURE_NO_WARNINGS #define _SCL_SECURE_NO_WARNINGS +#define _SCL_SECURE_NO_DEPRECATE #define _CRT_NONSTDC_NO_DEPRECATE 0 #include // because Borland's STL is braindead, we have to include _before_ in order to get memcpy @@ -393,7 +394,7 @@ struct temp_file fd = mkstemp(path); CHECK(fd != -1); - #elif defined(__CELLOS_LV2__) + #elif defined(__CELLOS_LV2__) || defined(_WIN32_WCE) path[0] = 0; // no temporary file support #else tmpnam(path); @@ -402,7 +403,9 @@ struct temp_file ~temp_file() { + #ifndef _WIN32_WCE CHECK(unlink(path) == 0); + #endif #ifdef __unix CHECK(close(fd) == 0); -- cgit v1.2.3