forked from enewhuis/liquibook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
liquibook_export.h
39 lines (32 loc) · 1.24 KB
/
liquibook_export.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
// Copyright (c) 2013 Object Computing, Inc.
// All rights reserved.
// See the file license.txt for licensing information.
#ifdef _MSC_VER
# pragma once
#endif
#ifndef liquibook_export_H
#define liquibook_export_H
// Compile time controls for library generation. Define with /D or #define
// To produce or use a static library: #define LIQUIBOOK_HAS_DLL=0
// Default is to produce/use a DLL
// While building the LIQUIBOOK_ library: #define LIQUIBOOK_BUILD_DLL
// Default is to export symbols from a pre-built LIQUIBOOK DLL
//
// Within LIQUIBOOK use the Liquibook_Export macro where a __declspec is needed.
#if defined (_WIN32)
# if !defined (LIQUIBOOK_HAS_DLL)
# define LIQUIBOOK_HAS_DLL 1
# endif /* ! LIQUIBOOK_HAS_DLL */
# if defined (LIQUIBOOK_HAS_DLL) && (LIQUIBOOK_HAS_DLL == 1)
# if defined (LIQUIBOOK_BUILD_DLL)
# define Liquibook_Export __declspec(dllexport)
# else /* LIQUIBOOK_BUILD_DLL */
# define Liquibook_Export __declspec(dllimport)
# endif /* LIQUIBOOK_BUILD_DLL */
# else /* LIQUIBOOK_HAS_DLL == 1 */
# define Liquibook_Export
# endif /* LIQUIBOOK_HAS_DLL == 1 */
# else /* !_WIN32 */
# define Liquibook_Export __attribute__ ((visibility("default")))
# endif /* _WIN32 */
#endif /* LIQUIBOOK_EXPORT_H */