llvm-toolchain/debian/patches/27-fix_clang_stdint.diff
2013-06-19 09:48:21 +00:00

30 lines
1016 B
Diff

Index: llvm-toolchain-snapshot_3.4~svn184290/clang/lib/Headers/stdint.h
===================================================================
--- llvm-toolchain-snapshot_3.4~svn184290.orig/clang/lib/Headers/stdint.h 2013-06-19 11:13:56.014779511 +0200
+++ llvm-toolchain-snapshot_3.4~svn184290/clang/lib/Headers/stdint.h 2013-06-19 11:13:56.010779511 +0200
@@ -22,8 +22,6 @@
*
\*===----------------------------------------------------------------------===*/
-#ifndef __CLANG_STDINT_H
-#define __CLANG_STDINT_H
/* If we're hosted, fall back to the system's stdint.h, which might have
* additional definitions.
@@ -73,6 +71,8 @@
# endif
#else
+#ifndef __CLANG_STDINT_H
+#define __CLANG_STDINT_H
/* C99 7.18.1.1 Exact-width integer types.
* C99 7.18.1.2 Minimum-width integer types.
@@ -704,5 +704,5 @@
#define INTMAX_C(v) __INTN_C(__INTMAX_WIDTH__, v)
#define UINTMAX_C(v) __UINTN_C(__INTMAX_WIDTH__, v)
-#endif /* __STDC_HOSTED__ */
#endif /* __CLANG_STDINT_H */
+#endif /* __STDC_HOSTED__ */