diff options
author | arseny.kapoulkine@gmail.com <arseny.kapoulkine@gmail.com@99668b35-9821-0410-8761-19e4c4f06640> | 2012-02-19 09:05:23 +0000 |
---|---|---|
committer | arseny.kapoulkine@gmail.com <arseny.kapoulkine@gmail.com@99668b35-9821-0410-8761-19e4c4f06640> | 2012-02-19 09:05:23 +0000 |
commit | 9133322c4c39141a80f79f24755566128bb98c13 (patch) | |
tree | 79724d4f39d40013cb598f09ba64f2a897893cc7 /tests/test_document.cpp | |
parent | be7bdafa4504b0d54e7defbbf1d89c4fe7a935d4 (diff) |
tests: Minor fixes for WinCE compilation
git-svn-id: http://pugixml.googlecode.com/svn/trunk@834 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests/test_document.cpp')
-rw-r--r-- | tests/test_document.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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 <string.h> // because Borland's STL is braindead, we have to include <string.h> _before_ <string> 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); |