diff options
author | Alexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de> | 2004-11-15 15:06:52 +0000 |
---|---|---|
committer | Alexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de> | 2004-11-15 15:06:52 +0000 |
commit | eb6967199448890591bec799d70c45827bc188eb (patch) | |
tree | de229e2d367fc4a3c2549c5282b3a5e22b934dc4 | |
parent | 36fbf892d1c2740afa51911b6f2c2e4bf8f871c0 (diff) |
Bufzilla #1802, http://freedesktop.org/bugzilla/show_bug.cgi?id=1802 Added
mingw (Win32) port
-rw-r--r-- | imake.c | 4 | ||||
-rw-r--r-- | imakemdep.h | 10 |
2 files changed, 14 insertions, 0 deletions
@@ -1422,8 +1422,12 @@ define_os_defaults(FILE *inFile) { #if defined CROSSCOMPILE || ( !defined(WIN32) && !defined(__UNIXOS2__) ) #ifdef CROSSCOMPILE +#ifdef __GNUC__ + if (1) +#else if ((sys != win32) && (sys != emx)) #endif +#endif { # if (defined(DEFAULT_OS_NAME) || defined(DEFAULT_OS_MAJOR_REV) || \ defined(DEFAULT_OS_MINOR_REV) || defined(DEFAULT_OS_TEENY_REV)) diff --git a/imakemdep.h b/imakemdep.h index 1340cc4..52d67ab 100644 --- a/imakemdep.h +++ b/imakemdep.h @@ -143,12 +143,16 @@ in this Software without prior written authorization from The Open Group. #endif #ifdef WIN32 +#ifdef __GNUC__ +#define imake_ccflags "-D__STDC__" +#else #if _MSC_VER < 1000 #define imake_ccflags "-nologo -batch -D__STDC__" #else #define imake_ccflags "-nologo -D__STDC__" #endif #endif +#endif #ifdef __uxp__ #define imake_ccflags "-DSVR4 -DANSICPP" @@ -256,8 +260,12 @@ in this Software without prior written authorization from The Open Group. #endif #ifdef WIN32 #define USE_CC_E +#ifdef __GNUC__ +#define DEFAULT_CC "gcc" +#else #define DEFAULT_CC "cl" #endif +#endif #ifdef apollo #define DEFAULT_CPP "/usr/lib/cpp" #endif @@ -597,10 +605,12 @@ char *cpp_argv[ARGUMENTS] = { #endif #ifdef WIN32 "-DWIN32", +#ifndef __GNUC__ "-nologo", #if _MSC_VER < 1000 "-batch", #endif +#endif "-D__STDC__", #endif #ifdef NCR |