From 0ac4a5ded41f274471bf0bc77bd07e43c9406ff3 Mon Sep 17 00:00:00 2001 From: Piet Brauer Date: Thu, 25 Feb 2016 18:15:02 +0800 Subject: Check for __CLANG_INTTYPES_H This fixes an issue in Xcode 7.3 in objective-git where we get the error "Include of non-modular header file in module". Not importing this header again fixes the issue. --- include/git2/common.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/git2/common.h b/include/git2/common.h index c26030840..487247d75 100644 --- a/include/git2/common.h +++ b/include/git2/common.h @@ -24,7 +24,8 @@ GIT_BEGIN_DECL # include "inttypes.h" GIT_END_DECL -#else +/** This check is needed for importing this file in an iOS/OS X framework throws an error in Xcode otherwise.*/ +#elif !defined(__CLANG_INTTYPES_H) # include #endif -- cgit v1.2.1