diff options
Diffstat (limited to 'rod/tccgen.nim')
-rwxr-xr-x | rod/tccgen.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rod/tccgen.nim b/rod/tccgen.nim index 0a588fda0..ca7bac193 100755 --- a/rod/tccgen.nim +++ b/rod/tccgen.nim @@ -30,6 +30,8 @@ proc addFile(filename: string) = proc setupEnvironment = when defined(amd64): defineSymbol(gTinyC, "__x86_64__", nil) + elif defined(i386): + defineSymbol(gTinyC, "__i386__", nil) when defined(linux): defineSymbol(gTinyC, "__linux__", nil) defineSymbol(gTinyC, "__linux", nil) @@ -40,7 +42,6 @@ proc setupEnvironment = addSysincludePath(gTinyC, nimrodDir / "tinyc/win32/include") addSysincludePath(gTinyC, nimrodDir / "tinyc/include") when defined(windows): - defineSymbol(gTinyC, "__i386__", nil) defineSymbol(gTinyC, "_WIN32", nil) # we need Mingw's headers too: var gccbin = getConfigVar("gcc.path") % ["nimrod", nimrodDir] |