summaryrefslogtreecommitdiffstats
path: root/src/include/stddef.h
diff options
context:
space:
mode:
authorMichael Brown2013-04-25 15:51:33 +0200
committerMichael Brown2013-04-25 15:52:01 +0200
commitf85af68ac50d1cda4d68b11bf102e93245be57b3 (patch)
treec2edcdd0762fa57fd6df65a837528a8067d78a7e /src/include/stddef.h
parent[build] Allow sparse to find compiler.h (diff)
downloadipxe-f85af68ac50d1cda4d68b11bf102e93245be57b3.tar.gz
ipxe-f85af68ac50d1cda4d68b11bf102e93245be57b3.tar.xz
ipxe-f85af68ac50d1cda4d68b11bf102e93245be57b3.zip
[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>
Diffstat (limited to 'src/include/stddef.h')
-rw-r--r--src/include/stddef.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/stddef.h b/src/include/stddef.h
index 83a0f0ed..20419bdf 100644
--- a/src/include/stddef.h
+++ b/src/include/stddef.h
@@ -25,6 +25,9 @@ FILE_LICENCE ( GPL2_ONLY );
#ifndef __WCHAR_TYPE__
#define __WCHAR_TYPE__ long int
#endif
+#ifndef __WINT_TYPE__
+#define __WINT_TYPE__ long int
+#endif
typedef __WCHAR_TYPE__ wchar_t;
typedef __WINT_TYPE__ wint_t;