blob: 492629042912d89d84f2baf5050aff3148d86b95 (
plain)
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
39
40
41
42
43
44
45
46
|
#!/bin/sh
# Generate nbt_export.h for libnbtplusplus
cat > "$1" << 'EOF'
#ifndef NBT_EXPORT_H
#define NBT_EXPORT_H
#ifdef NBT_STATIC_DEFINE
# define NBT_EXPORT
# define NBT_NO_EXPORT
#else
# if defined(_WIN32) || defined(__CYGWIN__)
# define NBT_EXPORT
# define NBT_NO_EXPORT
# else
# ifndef NBT_EXPORT
# ifdef nbt___EXPORTS
# define NBT_EXPORT __attribute__((visibility("default")))
# else
# define NBT_EXPORT __attribute__((visibility("default")))
# endif
# endif
# ifndef NBT_NO_EXPORT
# define NBT_NO_EXPORT __attribute__((visibility("hidden")))
# endif
# endif
#endif
#ifndef NBT_DEPRECATED
# if defined(_MSC_VER)
# define NBT_DEPRECATED __declspec(deprecated)
# else
# define NBT_DEPRECATED __attribute__((__deprecated__))
# endif
#endif
#ifndef NBT_DEPRECATED_EXPORT
# define NBT_DEPRECATED_EXPORT NBT_EXPORT NBT_DEPRECATED
#endif
#ifndef NBT_DEPRECATED_NO_EXPORT
# define NBT_DEPRECATED_NO_EXPORT NBT_NO_EXPORT NBT_DEPRECATED
#endif
#endif /* NBT_EXPORT_H */
EOF
|