blob: ac36a1d69578fc0fbdd912bf6ab7c83b9c8896b1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
--- a/main.cpp
+++ b/main.cpp
@@ -24,9 +24,10 @@
#include <stdio.h>
#include <iostream>
#include <fstream>
-#include <unistd.h>
+#ifndef _WIN32
+# include <unistd.h>
+#endif
#include <sstream>
-#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
--- a/parsedata.cpp
+++ b/parsedata.cpp
@@ -120,6 +120,10 @@ Key makeFsmKeyHex( char *str, const InputLoc &loc, ParseData *pd )
return Key( (long)ul );
}
+#ifdef _MSC_VER
+# define strtoll _strtoi64
+#endif
+
Key makeFsmKeyDec( char *str, const InputLoc &loc, ParseData *pd )
{
if ( keyOps->alphType->isSigned ) {
|