Let MSVC know that's it's MSVC.
This commit is contained in:
@@ -38,7 +38,7 @@ using namespace std;
|
|||||||
#define SLASH_STR "/"
|
#define SLASH_STR "/"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef MSC_VER
|
#ifndef __GNUC__ //MSVC
|
||||||
typedef ssize_t int;
|
typedef ssize_t int;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -252,7 +252,7 @@ ssize_t enhanced_atoi(const char *str)
|
|||||||
<< "}\n\n";
|
<< "}\n\n";
|
||||||
out_stream.close();
|
out_stream.close();
|
||||||
|
|
||||||
#ifdef MSC_VER
|
#ifndef __GNUC__ //MSVC
|
||||||
system("cl /Foeatio.exe eatio.c");
|
system("cl /Foeatio.exe eatio.c");
|
||||||
#else
|
#else
|
||||||
system("gcc -o eatio.exe eatio.c -s");
|
system("gcc -o eatio.exe eatio.c -s");
|
||||||
|
|||||||
Reference in New Issue
Block a user