Grassroots Infrastructure
The Grassroots Infrastructure is a suite of computing tools to help users and developers use scientific data infrastructure that can easily be interconnected.
uuid_util_library.h
Go to the documentation of this file.
1 /*
2  * uuid_util_library.h
3  *
4  * Created on: 30 Apr 2021
5  * Author: billy
6  */
7 
8 #ifndef CORE_SHARED_UUID_INCLUDE_UUID_UTIL_LIBRARY_H_
9 #define CORE_SHARED_UUID_INCLUDE_UUID_UTIL_LIBRARY_H_
10 
11 
12 /*
13 ** Copyright 2014-2016 The Earlham Institute
14 **
15 ** Licensed under the Apache License, Version 2.0 (the "License");
16 ** you may not use this file except in compliance with the License.
17 ** You may obtain a copy of the License at
18 **
19 ** http://www.apache.org/licenses/LICENSE-2.0
20 **
21 ** Unless required by applicable law or agreed to in writing, software
22 ** distributed under the License is distributed on an "AS IS" BASIS,
23 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24 ** See the License for the specific language governing permissions and
25 ** limitations under the License.
26 */
27 
28 #ifdef __cplusplus
29  extern "C" {
30 #endif
31 
32 #include "library.h"
33 
34 /*
35 ** Now we use the generic helper definitions above to define LIB_API and LIB_LOCAL.
36 ** LIB_API is used for the public API symbols. It either DLL imports or DLL exports
37 ** (or does nothing for static build)
38 ** LIB_LOCAL is used for non-api symbols.
39 */
40 
41 #ifdef SHARED_LIBRARY /* defined if LIB is compiled as a DLL */
42  #ifdef GRASSROOTS_UUID_LIBRARY_EXPORTS /* defined if we are building the LIB DLL (instead of using it) */
43  #define GRASSROOTS_UUID_API LIB_HELPER_SYMBOL_EXPORT
44  #else
45  #define GRASSROOTS_UUID_API LIB_HELPER_SYMBOL_IMPORT
46  #endif /* #ifdef UUID_UTIL_LIBRARY_EXPORTS */
47  #define GRASSROOTS_UUID_LOCAL LIB_HELPER_SYMBOL_LOCAL
48 #else /* SHARED_LIBRARY is not defined: this means LIB is a static lib. */
49  #define GRASSROOTS_UUID_API
50  #define GRASSROOTS_UUID_LOCAL
51 #endif /* #ifdef SHARED_LIBRARY */
52 
53 #ifdef __cplusplus
54 }
55 #endif
56 
57 
58 
59 
60 
61 
62 #endif /* CORE_SHARED_UUID_INCLUDE_UUID_UTIL_LIBRARY_H_ */
library.h