EduArt Sensor Ring Library 3.0.1
Loading...
Searching...
No Matches
SensorringExport.hpp
Go to the documentation of this file.
1// Copyright (c) 2025 EduArt Robotik GmbH
2
9
10#pragma once
11
12// Windows building a shared lib (.dll)
13#if defined(SENSORRING_SHARED) && (defined(_WIN32) || defined(_WIN64))
14// Disable compiler warning C4251 caused by members of standard library
15// https://learn.microsoft.com/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4251
16#pragma warning(disable : 4251)
17
18#ifdef SENSORRING_DLL_EXPORT
19#define SENSORRING_API __declspec(dllexport)
20#else
21#define SENSORRING_API __declspec(dllimport)
22#endif
23
24// Linux building a shared lib (.so)
25// Linux building a static lib (.a)
26// Windows building a static lib (.lib)
27#else
28#define SENSORRING_API
29#endif