This commit is contained in:
wangjiyu 2025-04-10 17:11:50 +08:00
parent 1b6d7c0dfb
commit 350933afe9
1 changed files with 2 additions and 5 deletions

View File

@ -1,15 +1,12 @@
// numpy_config.h
#ifndef MY_HEADER_H_
#define MY_HEADER_H_
#ifndef NUMPY_CONFIG_INCLUDED
#define NUMPY_CONFIG_INCLUDED
// 使用更独特的项目前缀(建议:<PROJECT>_<MODULE>_<RANDOM_SUFFIX>
#define PY_ARRAY_UNIQUE_SYMBOL RTC_PLUGINS_7A3B_ARRAY_API
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
#endif
// 确保只被包含一次
#ifndef NUMPY_CONFIG_INCLUDED
#define NUMPY_CONFIG_INCLUDED
#include <Python.h>
#include <numpy/arrayobject.h>
#endif