NVIDIAGeForceExperienceSDK
os_defines.h
1 /* Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved.
2  *
3  * NVIDIA CORPORATION and its licensors retain all intellectual property
4  * and proprietary rights in and to this software, related documentation
5  * and any modifications thereto. Any use, reproduction, disclosure or
6  * distribution of this software and related documentation without an express
7  * license agreement from NVIDIA CORPORATION is strictly prohibited.
8  */
9 
10 #ifndef GFESDK_OS_DEFINES_H
11 #define GFESDK_OS_DEFINES_H
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 #if defined _WIN32 || defined _WIN64
18 # if defined(NVGSDK_COMPILE_DLL)
19 # define NVGSDK_EXPORT __declspec(dllexport)
20 # else
21 # define NVGSDK_EXPORT __declspec(dllimport)
22 # endif
23 
24 # define NVGSDKApi __cdecl
25 # define NVGSDK_INTERFACE struct __declspec(novtable)
26 #else
27 #error Add the appropriate construct for the platform complier
28 #endif
29 
30 // Older versions of MSVC don't support inline in C
31 #if defined(_MSC_VER) && !defined(__cplusplus)
32 # define inline __inline
33 #endif
34 
35 #ifdef __cplusplus
36 };
37 #endif
38 
39 #endif // GFESDK_OS_DEFINES_H