summaryrefslogtreecommitdiffstats
path: root/tools/platform/platform-api.h
blob: b04e5ffce27d4fba0296c4f97939549deb424f7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef SLANG_PLATFORM_API_H
#define SLANG_PLATFORM_API_H

#if defined(SLANG_PLATFORM_DYNAMIC)
#    if defined(_MSC_VER)
#        ifdef SLANG_PLATFORM_DYNAMIC_EXPORT
#            define SLANG_PLATFORM_API SLANG_DLL_EXPORT
#        else
#            define SLANG_PLATFORM_API __declspec(dllimport)
#        endif
#    else
// TODO: need to consider compiler capabilities
//#     ifdef SLANG_DYNAMIC_EXPORT
#        define SLANG_PLATFORM_API SLANG_DLL_EXPORT
//#     endif
#    endif
#endif

#ifndef SLANG_PLATFORM_API
#    define SLANG_PLATFORM_API
#endif

#endif