-
Notifications
You must be signed in to change notification settings - Fork 0
/
halfExport.h
39 lines (34 loc) · 1.27 KB
/
halfExport.h
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
#ifndef HALFEXPORT_H
#define HALFEXPORT_H
//
// Copyright (c) 2008 Lucasfilm Entertainment Company Ltd.
// All rights reserved. Used under authorization.
// This material contains the confidential and proprietary
// information of Lucasfilm Entertainment Company and
// may not be copied in whole or in part without the express
// written permission of Lucasfilm Entertainment Company.
// This copyright notice does not imply publication.
//
#if defined(PLATFORM_WINDOWS)
# if defined(PLATFORM_BUILD_STATIC)
# define PLATFORM_EXPORT_DEFINITION
# define PLATFORM_IMPORT_DEFINITION
# else
# define PLATFORM_EXPORT_DEFINITION __declspec(dllexport)
# define PLATFORM_IMPORT_DEFINITION __declspec(dllimport)
# endif
#else // linux/macos
# if defined(PLATFORM_VISIBILITY_AVAILABLE)
# define PLATFORM_EXPORT_DEFINITION __attribute__((visibility("default")))
# define PLATFORM_IMPORT_DEFINITION
# else
# define PLATFORM_EXPORT_DEFINITION
# define PLATFORM_IMPORT_DEFINITION
# endif
#endif
#if defined(HALF_EXPORTS) // create library
# define HALF_EXPORT PLATFORM_EXPORT_DEFINITION
#else // use library
# define HALF_EXPORT PLATFORM_IMPORT_DEFINITION
#endif
#endif // #ifndef HALFEXPORT_H