export.h 670 Bytes
Newer Older
1
2
3
4
/*!
 * Copyright (c) 2017 Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See LICENSE file in the project root for license information.
 */
5
6
#ifndef LIGHTGBM_INCLUDE_LIGHTGBM_EXPORT_H_
#define LIGHTGBM_INCLUDE_LIGHTGBM_EXPORT_H_
7
8
9
10
11
12
13
14
15
16
17
18
19
20

/** Macros for exporting symbols in MSVC/GCC/CLANG **/

#ifdef __cplusplus
#define LIGHTGBM_EXTERN_C extern "C"
#else
#define LIGHTGBM_EXTERN_C
#endif


#ifdef _MSC_VER
#define LIGHTGBM_EXPORT __declspec(dllexport)
#define LIGHTGBM_C_EXPORT LIGHTGBM_EXTERN_C __declspec(dllexport)
#else
21
#define LIGHTGBM_EXPORT
22
23
24
#define LIGHTGBM_C_EXPORT LIGHTGBM_EXTERN_C
#endif

25
#endif  // LIGHTGBM_INCLUDE_LIGHTGBM_EXPORT_H_