basics.h
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2021 Intel Corporation. All Rights Reserved.
3 
4 #pragma once
5 
6 
7 // Disable declspec(dllexport) warnings:
8 // Classes exported via LRS_EXTENSION_API are **not** part of official librealsense API (at least for now)
9 // Any extension relying on these APIs must be compiled and distributed together with realsense2.dll
10 #pragma warning(disable : 4275) /* disable: C4275: non dll-interface class used as base for dll-interface class */
11 #pragma warning(disable : 4251) /* disable: C4251: class needs to have dll-interface to be used by clients of class */
12 
13 // Compiler Warning (level 2) C4250: 'class1' : inherits 'class2::member' via dominance
14 // This happens for librealsense::device, basically warning us of something that we know and is OK:
15 // 'librealsense::device': inherits 'info_container::create_snapshot' via dominance (and repeats for 3 more functions)
16 // And for anything else using both an interface and a container, options_container etc.
17 #pragma warning(disable: 4250)
18 
19 
20 #ifdef WIN32
21 #define LRS_EXTENSION_API __declspec(dllexport)
22 #else
23 #define LRS_EXTENSION_API
24 #endif


librealsense2
Author(s): LibRealSense ROS Team
autogenerated on Fri Aug 2 2024 08:30:01