From 6aaddf44aa3dc1fe742224972da019cc77574342 Mon Sep 17 00:00:00 2001 From: Zhigang Gong Date: Mon, 17 Dec 2012 15:21:11 +0800 Subject: [PATCH] Fixed compilation warnings. __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS are in cflags, we don't need to put them in source file. Otherwise, it causes redefine warnings. Reported by guanqun. Signed-off-by: Zhigang Gong --- backend/src/llvm/llvm_passes.cpp | 2 -- backend/src/llvm/llvm_to_gen.cpp | 2 -- 2 files changed, 4 deletions(-) diff --git a/backend/src/llvm/llvm_passes.cpp b/backend/src/llvm/llvm_passes.cpp index f19278c..bae784b 100644 --- a/backend/src/llvm/llvm_passes.cpp +++ b/backend/src/llvm/llvm_passes.cpp @@ -30,8 +30,6 @@ * Segovia) the right to use another license for it (MIT here) */ -#define __STDC_LIMIT_MACROS -#define __STDC_CONSTANT_MACROS #include "llvm/CallingConv.h" #include "llvm/Constants.h" #include "llvm/DerivedTypes.h" diff --git a/backend/src/llvm/llvm_to_gen.cpp b/backend/src/llvm/llvm_to_gen.cpp index fc44623..21193a5 100644 --- a/backend/src/llvm/llvm_to_gen.cpp +++ b/backend/src/llvm/llvm_to_gen.cpp @@ -22,8 +22,6 @@ * \author Benjamin Segovia */ -#define __STDC_LIMIT_MACROS -#define __STDC_CONSTANT_MACROS #include "llvm/LLVMContext.h" #include "llvm/Module.h" #include "llvm/PassManager.h" -- 2.7.4