diff options
-rw-r--r-- | include/llvm/Support/DataTypes.h.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Support/DataTypes.h.in b/include/llvm/Support/DataTypes.h.in index b19593066b..72063f7d2a 100644 --- a/include/llvm/Support/DataTypes.h.in +++ b/include/llvm/Support/DataTypes.h.in @@ -37,6 +37,11 @@ # error "Must #define __STDC_LIMIT_MACROS before #including Support/DataTypes.h" #endif +#if !defined(__STDC_CONSTANT_MACROS) +# error "Must #define __STDC_CONSTANT_MACROS before " \ + "#including Support/DataTypes.h" +#endif + // Note that <inttypes.h> includes <stdint.h>, if this is a C99 system. #ifdef HAVE_SYS_TYPES_H #include <sys/types.h> |