Made some changes based on suggestions by Kode54.
This commit is contained in:
@@ -21,6 +21,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|||||||
Config file handler creator by Nach (C) 2005
|
Config file handler creator by Nach (C) 2005
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if !defined(__GNUC__) && !defined(_MSC_VER)
|
||||||
|
#error You are using an unsupported compiler
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <string>
|
#include <string>
|
||||||
@@ -38,7 +42,7 @@ using namespace std;
|
|||||||
#define SLASH_STR "/"
|
#define SLASH_STR "/"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __GNUC__ //MSVC
|
#ifdef _MSC_VER //MSVC
|
||||||
typedef int ssize_t;
|
typedef int ssize_t;
|
||||||
#define strcasecmp stricmp
|
#define strcasecmp stricmp
|
||||||
#endif
|
#endif
|
||||||
@@ -253,8 +257,8 @@ ssize_t enhanced_atoi(const char *str)
|
|||||||
<< "}\n\n";
|
<< "}\n\n";
|
||||||
out_stream.close();
|
out_stream.close();
|
||||||
|
|
||||||
#ifndef __GNUC__ //MSVC
|
#ifdef _MSC_VER //MSVC
|
||||||
system("cl /Feeatio.exe eatio.c");
|
system("cl /nologo /Feeatio.exe eatio.c");
|
||||||
#else
|
#else
|
||||||
system("gcc -o eatio.exe eatio.c -s");
|
system("gcc -o eatio.exe eatio.c -s");
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user