summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de>2004-11-15 15:06:52 +0000
committerAlexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de>2004-11-15 15:06:52 +0000
commit33dd47009fe09ce9e5628df51914821d416be78d (patch)
treeb103c23815546422f50ab303ab311f2f8287e738
parent67b078bc115ca3c52545b9dacb2b0fc0a1c9e90e (diff)
downloadxorg-util-makedepend-33dd47009fe09ce9e5628df51914821d416be78d.tar.gz
Bufzilla #1802, http://freedesktop.org/bugzilla/show_bug.cgi?id=1802 Added
mingw (Win32) port
-rw-r--r--imakemdep.h10
1 files changed, 10 insertions, 0 deletions
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