changeset 22:ff2caa6b48d1

Forgot about #ifdef __cplusplus guard around 'extern "C"', so inclusion to C files has been broken.
author ipse.c99@d525d15b-5824-0410-80a3-6185d19c2cde
date Wed, 13 May 2009 10:53:48 +0000
parents c0040f8fc49b
children b1e002710e2d
files stdint.h
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/stdint.h
+++ b/stdint.h
@@ -46,9 +46,13 @@
 // compiling for ARM we should wrap <wchar.h> include with 'extern "C++" {}'
 // or compiler give many errors like this:
 //   error C2733: second C linkage of overloaded function 'wmemchr' not allowed
+#ifdef __cplusplus
 extern "C" {
-#   include <wchar.h>
+#endif
+#  include <wchar.h>
+#ifdef __cplusplus
 }
+#endif
 
 // Define _W64 macros to mark types changing their size, like intptr_t.
 #ifndef _W64