aboutsummaryrefslogtreecommitdiff
path: root/include/gfesdk/os_defines.h
blob: f2eb0cab8434605b59f9340f4e49479dbdea99b0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/* Copyright (c) 2016-2017, NVIDIA CORPORATION.  All rights reserved.
 *
 * NVIDIA CORPORATION and its licensors retain all intellectual property
 * and proprietary rights in and to this software, related documentation
 * and any modifications thereto.  Any use, reproduction, disclosure or
 * distribution of this software and related documentation without an express
 * license agreement from NVIDIA CORPORATION is strictly prohibited.
 */

#ifndef GFESDK_OS_DEFINES_H
#define GFESDK_OS_DEFINES_H

#ifdef __cplusplus
extern "C" {
#endif

#if defined _WIN32 || defined _WIN64
#   if defined(NVGSDK_COMPILE_DLL)
#       define NVGSDK_EXPORT __declspec(dllexport)
#   else
#       define NVGSDK_EXPORT __declspec(dllimport)
#   endif

#   define NVGSDKApi __cdecl
#   define NVGSDK_INTERFACE struct __declspec(novtable)
#else
#error Add the appropriate construct for the platform complier
#endif

// Older versions of MSVC don't support inline in C
#if defined(_MSC_VER) && !defined(__cplusplus)
#   define inline __inline
#endif

#ifdef __cplusplus
};
#endif

#endif // GFESDK_OS_DEFINES_H