[LLVMdev] __STDC_LIMIT_MACROS
Frank Winter
fwinter at jlab.org
Mon Dec 2 08:08:53 PST 2013
I am trying out RC1, host compilers: GCC 4.6.3 and GCC 4.8.2
Building LLVM RC1 succeeds with both compilers.
My application uses LLVM IR builder and JIT'er. Building succeeds with
GCC 4.8.2, but fails with GCC 4.6.3:
llvm-rc1/include/llvm/Support/DataTypes.h:48:3: error: #error "Must
#define __STDC_LIMIT_MACROS before #including Support/DataTypes.h"
When defining the __STDC_LIMIT_MACROSand __STDC_CONSTANT_MACROS building
with GCC 4.6.3 also succeeds.
Are these defines really necessary, why are they not needed for GCC
4.8.2?Should I be worried to leave the defines in the code?
Frank
More information about the llvm-dev
mailing list