Browse Source

[build] Define __WINT_TYPE__ if necessary

sparse does not define __WCHAR_TYPE__ or __WINT_TYPE__.  We already
define __WCHAR_TYPE__ if the compiler does not do so; do the same for
__WINT_TYPE__.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 11 years ago
parent
commit
f85af68ac5
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/include/stddef.h

+ 3
- 0
src/include/stddef.h View File

25
 #ifndef __WCHAR_TYPE__
25
 #ifndef __WCHAR_TYPE__
26
 #define __WCHAR_TYPE__ long int
26
 #define __WCHAR_TYPE__ long int
27
 #endif
27
 #endif
28
+#ifndef __WINT_TYPE__
29
+#define __WINT_TYPE__ long int
30
+#endif
28
 typedef __WCHAR_TYPE__ wchar_t;
31
 typedef __WCHAR_TYPE__ wchar_t;
29
 typedef __WINT_TYPE__ wint_t;
32
 typedef __WINT_TYPE__ wint_t;
30
 
33
 

Loading…
Cancel
Save