Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0ac4a5d

Browse files
committed
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.
1 parent 68ad315 commit 0ac4a5d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/git2/common.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
GIT_BEGIN_DECL
2525
# include "inttypes.h"
2626
GIT_END_DECL
27-
#else
27+
/** This check is needed for importing this file in an iOS/OS X framework throws an error in Xcode otherwise.*/
28+
#elif !defined(__CLANG_INTTYPES_H)
2829
# include <inttypes.h>
2930
#endif
3031

0 commit comments

Comments
 (0)