Browse Source

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
pull/6185/head
KRT nihui 11 months ago
parent
commit
a356f6ef3f
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      src/platform.h.in

+ 4
- 3
src/platform.h.in View File

@@ -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 <stdint.h>


#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 <stdint.h>
#include <algorithm>
#include <list>
#include <vector>


Loading…
Cancel
Save