CLOGS
C++ library for sorting and searching in OpenCL applications
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
visibility.h
Go to the documentation of this file.
1
/* Copyright (c) 2012 University of Cape Town
2
*
3
* Permission is hereby granted, free of charge, to any person obtaining a copy
4
* of this software and associated documentation files (the "Software"), to deal
5
* in the Software without restriction, including without limitation the rights
6
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
* copies of the Software, and to permit persons to whom the Software is
8
* furnished to do so, subject to the following conditions:
9
*
10
* The above copyright notice and this permission notice shall be included in
11
* all copies or substantial portions of the Software.
12
*
13
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
* SOFTWARE.
20
*/
21
32
#ifndef CLOGS_VISIBILITY_H
33
#define CLOGS_VISIBILITY_H
34
35
#if defined(_WIN32) || defined(__CYGWIN__)
36
# define CLOGS_DLL_IMPORT __declspec(dllimport)
37
# define CLOGS_DLL_EXPORT __declspec(dllexport)
38
# define CLOGS_DLL_LOCAL
39
#else
40
# if __GNUC__ >= 4
41
# define CLOGS_DLL_DO_PUSH_POP
42
# define CLOGS_DLL_IMPORT __attribute__((visibility("default")))
43
# define CLOGS_DLL_EXPORT __attribute__((visibility("default")))
44
# define CLOGS_DLL_LOCAL __attribute__((visibility("hidden")))
45
# else
46
# define CLOGS_DLL_IMPORT
47
# define CLOGS_DLL_EXPORT
48
# define CLOGS_DLL_LOCAL
49
# endif
50
#endif
51
52
#ifdef CLOGS_DLL_DO_STATIC
/* defined by build system in static lib builds */
53
# define CLOGS_API CLOGS_DLL_LOCAL
54
#else
55
/* CLOGS_DLL_DO_EXPORT is defined by the build system when building the library */
56
#ifdef CLOGS_DLL_DO_EXPORT
57
# define CLOGS_API CLOGS_DLL_EXPORT
58
#else
59
# define CLOGS_API CLOGS_DLL_IMPORT
60
#endif
61
#endif
62
#define CLOGS_LOCAL CLOGS_DLL_LOCAL
63
64
#endif
/* !CLOGS_VISIBILITY_H */
include
clogs
visibility.h
Generated on Sat Apr 1 2017 17:50:16 for CLOGS by
1.8.11