From efcbe8390a62d779d22e221b59ce16d0abfbe577 Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Mon, 23 Jan 2012 21:39:45 +0100 Subject: [PATCH] Work around macro redefinition warning (darwin11-llvm-gcc-4.2). --- dmd/mars.h | 2 ++ dmd2/mars.h | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/dmd/mars.h b/dmd/mars.h index 3dc5f193..9ae013f1 100644 --- a/dmd/mars.h +++ b/dmd/mars.h @@ -66,7 +66,9 @@ the target object file format: #include #include #include +#ifndef __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS 1 +#endif #include #include diff --git a/dmd2/mars.h b/dmd2/mars.h index ad612f06..033a4763 100644 --- a/dmd2/mars.h +++ b/dmd2/mars.h @@ -69,7 +69,9 @@ the target object file format: #include #include #include +#ifndef __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS 1 +#endif #include #include @@ -237,7 +239,7 @@ struct Param char *moduleDepsFile; // filename for deps output OutBuffer *moduleDeps; // contents to be written to deps file - + // Hidden debug switches bool debuga; bool debugb;