修改该linux下dll导出

This commit is contained in:
xin
2025-06-30 15:41:52 +08:00
parent cb1d44f616
commit 9ccfe6c75f
2 changed files with 22 additions and 12 deletions

View File

@ -19,12 +19,17 @@
extern "C" {
#endif
#ifdef _WIN32
#define WINDOWSEXPORT __declspec(dllexport) // Windows下导出函数
#elif
#define WINDOWSEXPORT // Linux下导出函数
#endif
__declspec(dllexport) int IS11SensorInit();
__declspec(dllexport) void Set_Serial_FUN(SERIALWRITE writefunc,SERIALWRITE readfunc);
__declspec(dllexport) STRsensorinfo_C Get_SensorInfo();
__declspec(dllexport) int IS11OptSnenser(int percent);
__declspec(dllexport) int IS11GetData(uint16_t *outdata,int shuttertime);
WINDOWSEXPORT int IS11SensorInit();
WINDOWSEXPORT void Set_Serial_FUN(SERIALWRITE writefunc,SERIALWRITE readfunc);
WINDOWSEXPORT STRsensorinfo_C Get_SensorInfo();
WINDOWSEXPORT int IS11OptSnenser(int percent);
WINDOWSEXPORT int IS11GetData(uint16_t *outdata,int shuttertime);
#ifdef __cplusplus
}