blob: 2aae7b607df6197c0791a52e8d85e5b9393f8afc (
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
|
#!/bin/sh
# Generate cmark_export.h
cat > "$1" << 'EOF'
#ifndef CMARK_EXPORT_H
#define CMARK_EXPORT_H
#ifdef CMARK_STATIC_DEFINE
# define CMARK_EXPORT
# define CMARK_NO_EXPORT
#else
# if defined(_WIN32) || defined(__CYGWIN__)
# ifdef cmark_EXPORTS
# define CMARK_EXPORT __declspec(dllexport)
# else
# define CMARK_EXPORT __declspec(dllimport)
# endif
# define CMARK_NO_EXPORT
# else
# ifndef CMARK_EXPORT
# define CMARK_EXPORT __attribute__((visibility("default")))
# endif
# ifndef CMARK_NO_EXPORT
# define CMARK_NO_EXPORT __attribute__((visibility("hidden")))
# endif
# endif
#endif
#endif /* CMARK_EXPORT_H */
EOF
|