[LLVMdev] [PATCH] llvm-c/Core.h: Define __STDC_LIMIT_MACROS

Eli Friedman eli.friedman at gmail.com
Fri Dec 9 15:17:32 PST 2011


On Fri, Dec 9, 2011 at 5:07 AM, Johannes Obermayr
<johannesobermayr at gmx.de> wrote:
> ---
>  include/llvm-c/Core.h |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/include/llvm-c/Core.h b/include/llvm-c/Core.h
> index 3ffaddd..becba7f 100644
> --- a/include/llvm-c/Core.h
> +++ b/include/llvm-c/Core.h
> @@ -33,6 +33,10 @@
>  #ifndef LLVM_C_CORE_H
>  #define LLVM_C_CORE_H
>
> +#ifndef __STDC_LIMIT_MACROS
> +#define __STDC_LIMIT_MACROS
> +#endif
> +
>  #include "llvm/Support/DataTypes.h"
>
>  #ifdef __cplusplus
> --
> 1.7.7

If you use "llvm-config --cflags", you should have that define already.

-Eli




More information about the llvm-dev mailing list