diff options
Diffstat (limited to 'src/include/stdint.h')
| -rw-r--r-- | src/include/stdint.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/include/stdint.h b/src/include/stdint.h index 4b0e44f2e..dc4bd8c76 100644 --- a/src/include/stdint.h +++ b/src/include/stdint.h @@ -1,6 +1,16 @@ #ifndef _STDINT_H #define _STDINT_H +/* + * 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; |
