From a356f6ef3f0db52500f5f64991ffae96b6febd7b Mon Sep 17 00:00:00 2001 From: KRT <2386145092@qq.com> Date: Thu, 17 Jul 2025 21:04:36 +0800 Subject: [PATCH] Fix aarch64-native simplestl-simplemath compilation - Use stdint.h consistently for all modes to avoid C++03/C++11 conflicts - Prevents vector template conflicts between standard library and simplestl - Resolves 'wrong number of template arguments' errors in aarch64-native CI --- src/platform.h.in | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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