Quellcode durchsuchen

[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 vor 11 Jahren
Ursprung
Commit
f85af68ac5
1 geänderte Dateien mit 3 neuen und 0 gelöschten Zeilen
  1. 3
    0
      src/include/stddef.h

+ 3
- 0
src/include/stddef.h Datei anzeigen

@@ -25,6 +25,9 @@ FILE_LICENCE ( GPL2_ONLY );
25 25
 #ifndef __WCHAR_TYPE__
26 26
 #define __WCHAR_TYPE__ long int
27 27
 #endif
28
+#ifndef __WINT_TYPE__
29
+#define __WINT_TYPE__ long int
30
+#endif
28 31
 typedef __WCHAR_TYPE__ wchar_t;
29 32
 typedef __WINT_TYPE__ wint_t;
30 33
 

Laden…
Abbrechen
Speichern