diff --git a/src/platform.h.in b/src/platform.h.in index dfbe1830e..2753fabbd 100644 --- a/src/platform.h.in +++ b/src/platform.h.in @@ -4,9 +4,7 @@ #ifndef NCNN_PLATFORM_H #define NCNN_PLATFORM_H -// Ensure basic integer types are available in all modes -// Use C header for compatibility with C++03 and simple modes -#include + #cmakedefine01 NCNN_STDIO #cmakedefine01 NCNN_STRING @@ -317,6 +315,9 @@ static inline void swap_endianness_32(void* x) #if NCNN_SIMPLESTL #include "simplestl.h" #else +// Ensure basic integer types are available when not using simplestl +// Use C header for compatibility with C++03 and simple modes +#include #include #include #include