summaryrefslogtreecommitdiff
path: root/pcrecpp_unittest.cc
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2007-09-11 11:36:27 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2007-09-11 11:36:27 +0000
commit577a3f51ea8062d183d4a8c8857f5d1f0a80c2f3 (patch)
tree02a0ad9ca7ab1f42a16da0d7118f223ee24ed589 /pcrecpp_unittest.cc
parenta786a15bec96fa9a25461736e4c2361842d61214 (diff)
downloadpcre-577a3f51ea8062d183d4a8c8857f5d1f0a80c2f3.tar.gz
Macros for snprintf, strtoll, strtoull when compiling the C++ things under
Windows. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@234 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcrecpp_unittest.cc')
-rw-r--r--pcrecpp_unittest.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/pcrecpp_unittest.cc b/pcrecpp_unittest.cc
index 787f143..4f399eb 100644
--- a/pcrecpp_unittest.cc
+++ b/pcrecpp_unittest.cc
@@ -37,6 +37,10 @@
#include <config.h>
#endif
+#ifdef _WIN32
+#define snprintf _snprintf
+#endif
+
#include <stdio.h>
#include <cassert>
#include <vector>