diff options
Diffstat (limited to 'util/nvmutil')
| -rw-r--r-- | util/nvmutil/nvmutil.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index e281f4ef..d1786571 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -34,15 +34,19 @@ #include <limits.h> #include <stdarg.h> #if defined(__has_include) -#if __has_include(<stdint.h>) -#include <stdint.h> -#else +# if __has_include(<stdint.h>) +# include <stdint.h> +# else typedef unsigned char uint8_t; typedef unsigned short uint16_t; typedef unsigned int uint32_t; -#endif +# endif +#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L +# include <stdint.h> #else -#include <stdint.h> +typedef unsigned char uint8_t; +typedef unsigned short uint16_t; +typedef unsigned int uint32_t; #endif #include <stdio.h> #include <stdlib.h> |
