LIEF: Library to Instrument Executable Formats
Version 0.17.0
Toggle main menu visibility
Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Functions
a
c
d
e
f
g
h
i
l
m
n
o
r
s
t
u
v
w
Typedefs
a
b
c
d
h
j
o
r
s
u
v
Enumerations
a
c
d
e
h
i
l
m
o
p
r
s
x
Enumerator
a
c
d
f
i
k
m
o
p
r
s
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
v
x
Enumerations
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
j
m
n
o
p
r
s
t
u
w
Related Symbols
o
Files
File List
File Members
All
_
e
h
i
l
m
o
p
r
t
Functions
Typedefs
Enumerations
l
r
Enumerator
l
Macros
_
e
h
l
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
lief-static-install
include
LIEF
visibility.h
Go to the documentation of this file.
1
/* Copyright 2017 - 2025 R. Thomas
2
* Copyright 2017 - 2025 Quarkslab
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
#ifndef LIEF_SYMBOL_VISIBILITY_H
18
#define LIEF_SYMBOL_VISIBILITY_H
19
20
/* Thanks to https://github.com/aguinet/dragonffi/blob/40f3fecb9530a2ef840f63882c5284ea5e8dc9e8/include/dffi/exports.h */
21
#if defined _WIN32 || defined __CYGWIN__
22
#define LIEF_HELPER_IMPORT __declspec(dllimport)
23
#define LIEF_HELPER_EXPORT __declspec(dllexport)
24
#define LIEF_HELPER_LOCAL
25
#else
26
#define LIEF_HELPER_IMPORT __attribute__ ((visibility ("default")))
27
#define LIEF_HELPER_EXPORT __attribute__ ((visibility ("default")))
28
#define LIEF_HELPER_LOCAL __attribute__ ((visibility ("hidden")))
29
#endif
30
31
#if defined(LIEF_STATIC)
32
#define LIEF_API
33
#define LIEF_LOCAL
34
#elif defined(LIEF_EXPORTS)
35
#define LIEF_API LIEF_HELPER_EXPORT
36
#define LIEF_LOCAL LIEF_HELPER_LOCAL
37
#elif defined(LIEF_IMPORT)
38
#define LIEF_API LIEF_HELPER_IMPORT
39
#define LIEF_LOCAL LIEF_HELPER_LOCAL
40
#else
41
#define LIEF_API
42
#define LIEF_LOCAL LIEF_HELPER_LOCAL
43
#endif
44
45
#endif
Generated by
1.13.0