#else
#define __ENDIAN_PAD(x) 0
#endif
-#ifdef __MINGW32__
-#ifdef _WIN64
+#if defined(_WIN64) || WORDSIZE == 64
typedef unsigned long long int uintptr_t;
typedef long long int intptr_t;
#else
typedef unsigned int uintptr_t;
typedef int intptr_t;
#endif
-#else
-#include <stdint.h>
-#endif
extern void * __ecereNameSpace__ecere__com__eSystem_New(unsigned int size);
extern void * __ecereNameSpace__ecere__com__eSystem_New0(unsigned int size);
__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(output, "#else\n");
__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(output, "#define __ENDIAN_PAD(x) 0\n");
__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(output, "#endif\n");
-__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(output, "#ifdef __MINGW32__\n");
-__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(output, "#ifdef _WIN64\n");
+__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(output, "#if defined(_WIN64) || WORDSIZE == 64\n");
__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(output, "typedef unsigned long long int uintptr_t;\n");
__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(output, "typedef long long int intptr_t;\n");
__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(output, "#else\n");
__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(output, "typedef unsigned int uintptr_t;\n");
__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(output, "typedef int intptr_t;\n");
__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(output, "#endif\n");
-__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(output, "#else\n");
-__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(output, "#include <stdint.h>\n");
-__ecereMethod___ecereNameSpace__ecere__sys__File_Printf(output, "#endif\n");
if(ast)
OutputTree(ast, output);
(__ecereNameSpace__ecere__com__eInstance_DecRef(output), output = 0);
#else
#define __ENDIAN_PAD(x) 0
#endif
-#ifdef __MINGW32__
-#ifdef _WIN64
+#if defined(_WIN64) || WORDSIZE == 64
typedef unsigned long long int uintptr_t;
typedef long long int intptr_t;
#else
typedef unsigned int uintptr_t;
typedef int intptr_t;
#endif
-#else
-#include <stdint.h>
-#endif
extern void * __ecereNameSpace__ecere__com__eSystem_New(unsigned int size);
extern void * __ecereNameSpace__ecere__com__eSystem_New0(unsigned int size);
output.Printf("#else\n");
output.Printf("#define __ENDIAN_PAD(x) 0\n");
output.Printf("#endif\n");
- output.Printf("#ifdef __MINGW32__\n");
- output.Printf("#ifdef _WIN64\n");
+ //output.Printf("#ifdef __MINGW32__\n");
+ //output.Printf("#ifdef _WIN64\n");
+ output.Printf("#if defined(_WIN64) || WORDSIZE == 64\n");
output.Printf("typedef unsigned long long int uintptr_t;\n");
output.Printf("typedef long long int intptr_t;\n");
output.Printf("#else\n");
output.Printf("typedef unsigned int uintptr_t;\n");
output.Printf("typedef int intptr_t;\n");
output.Printf("#endif\n");
- output.Printf("#else\n");
- output.Printf("#include <stdint.h>\n");
- output.Printf("#endif\n");
+ //output.Printf("#else\n");
+ //output.Printf("#include <stdint.h>\n");
+ //output.Printf("#endif\n");
// NOTE: If anything is changed up there, the start outputLine must be updated in libec's output.c or Debugging lines will be wrong