aboutsummaryrefslogtreecommitdiffstats
path: root/gpxe/src/include/stdint.h
diff options
context:
space:
mode:
Diffstat (limited to 'gpxe/src/include/stdint.h')
-rw-r--r--gpxe/src/include/stdint.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/gpxe/src/include/stdint.h b/gpxe/src/include/stdint.h
index 4b0e44f2..8cc9b84a 100644
--- a/gpxe/src/include/stdint.h
+++ b/gpxe/src/include/stdint.h
@@ -1,6 +1,18 @@
#ifndef _STDINT_H
#define _STDINT_H
+FILE_LICENCE ( GPL2_OR_LATER );
+
+/*
+ * This is a standard predefined macro on all gcc's I've seen. It's
+ * important that we define size_t in the same way as the compiler,
+ * because that's what it's expecting when it checks %zd/%zx printf
+ * format specifiers.
+ */
+#ifndef __SIZE_TYPE__
+#define __SIZE_TYPE__ unsigned long /* safe choice on most systems */
+#endif
+
#include <bits/stdint.h>
typedef int8_t s8;