diff --git a/myis11/src/IRIS_IS3/IS3_INST.h b/myis11/src/IRIS_IS3/IS3_INST.h index 03e49c2..acb6241 100644 --- a/myis11/src/IRIS_IS3/IS3_INST.h +++ b/myis11/src/IRIS_IS3/IS3_INST.h @@ -19,14 +19,19 @@ extern "C" { #endif +#ifdef _WIN32 +#define WINDOWSEXPORT __declspec(dllexport) // Windows下导出函数 +#elif +#define WINDOWSEXPORT // Linux下导出函数 +#endif -__declspec(dllexport) int IS3SensorInit(); - __declspec(dllexport) void IS3Set_Serial_FUN(SERIALWRITE writefunc,SERIALWRITE readfunc); -__declspec(dllexport) STRsensorinfo_C IS3Get_SensorInfo(); -__declspec(dllexport) int IS3OptSnenser(int percent); -__declspec(dllexport) int IS3GetData(uint16_t *outdata,int shuttertime); - __declspec(dllexport) int IS3SetWeaveLenthCoeff(double *a,int lenth); -__declspec(dllexport) void IS3SetShutterOpen(int isopen); +WINDOWSEXPORT int IS3SensorInit(); +WINDOWSEXPORT void IS3Set_Serial_FUN(SERIALWRITE writefunc,SERIALWRITE readfunc); +WINDOWSEXPORT STRsensorinfo_C IS3Get_SensorInfo(); +WINDOWSEXPORT int IS3OptSnenser(int percent); +WINDOWSEXPORT int IS3GetData(uint16_t *outdata,int shuttertime); +WINDOWSEXPORT int IS3SetWeaveLenthCoeff(double *a,int lenth); +WINDOWSEXPORT void IS3SetShutterOpen(int isopen); #ifdef __cplusplus } #endif diff --git a/myis11/src/is11/IS11_INST.h b/myis11/src/is11/IS11_INST.h index b74dd39..f9631c0 100644 --- a/myis11/src/is11/IS11_INST.h +++ b/myis11/src/is11/IS11_INST.h @@ -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 }