aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libidn/patches/09-fix-IDNAPI-define.patch
blob: ca3f31ee36123eb68b91620aed3608a926d4c62f (plain) (blame)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
--- contrib/libs/libidn/lib/idn-free.h	(9920c22126a48eb778c3500fc4c98e84a275c80a)
+++ contrib/libs/libidn/lib/idn-free.h	(cdd34515220d5a3cb13a2d6cb6a8a64d9e8eabf5)
@@ -39,15 +39,7 @@
  */
 
 # ifndef IDNAPI
-#  if defined LIBIDN_BUILDING && defined HAVE_VISIBILITY && HAVE_VISIBILITY
-#   define IDNAPI __attribute__((__visibility__("default")))
-#  elif defined LIBIDN_BUILDING && defined _MSC_VER && ! defined LIBIDN_STATIC
-#   define IDNAPI __declspec(dllexport)
-#  elif defined _MSC_VER && ! defined LIBIDN_STATIC
-#   define IDNAPI __declspec(dllimport)
-#  else
 #   define IDNAPI
-#  endif
 # endif
 
 # ifdef __cplusplus
--- contrib/libs/libidn/lib/pr29.h	(9920c22126a48eb778c3500fc4c98e84a275c80a)
+++ contrib/libs/libidn/lib/pr29.h	(cdd34515220d5a3cb13a2d6cb6a8a64d9e8eabf5)
@@ -39,15 +39,7 @@
  */
 
 # ifndef IDNAPI
-#  if defined LIBIDN_BUILDING && defined HAVE_VISIBILITY && HAVE_VISIBILITY
-#   define IDNAPI __attribute__((__visibility__("default")))
-#  elif defined LIBIDN_BUILDING && defined _MSC_VER && ! defined LIBIDN_STATIC
-#   define IDNAPI __declspec(dllexport)
-#  elif defined _MSC_VER && ! defined LIBIDN_STATIC
-#   define IDNAPI __declspec(dllimport)
-#  else
 #   define IDNAPI
-#  endif
 # endif
 
 # ifdef __cplusplus
--- contrib/libs/libidn/lib/stringprep.h	(9920c22126a48eb778c3500fc4c98e84a275c80a)
+++ contrib/libs/libidn/lib/stringprep.h	(cdd34515220d5a3cb13a2d6cb6a8a64d9e8eabf5)
@@ -43,15 +43,7 @@ typedef int ssize_t;
  */
 
 # ifndef IDNAPI
-#  if defined LIBIDN_BUILDING && defined HAVE_VISIBILITY && HAVE_VISIBILITY
-#   define IDNAPI __attribute__((__visibility__("default")))
-#  elif defined LIBIDN_BUILDING && defined _MSC_VER && ! defined LIBIDN_STATIC
-#   define IDNAPI __declspec(dllexport)
-#  elif defined _MSC_VER && ! defined LIBIDN_STATIC
-#   define IDNAPI __declspec(dllimport)
-#  else
 #   define IDNAPI
-#  endif
 # endif
 
 # include <stddef.h>		/* size_t */
--- contrib/libs/libidn/lib/idna.h	(index)
+++ contrib/libs/libidn/lib/idna.h	(working tree)
@@ -49,15 +49,7 @@
  * https://www.gnu.org/software/gnulib/manual/html_node/Exported-Symbols-of-Shared-Libraries.html
  */
 # ifndef IDNAPI
-#  if defined LIBIDN_BUILDING && defined HAVE_VISIBILITY && HAVE_VISIBILITY
-#   define IDNAPI __attribute__((__visibility__("default")))
-#  elif defined LIBIDN_BUILDING && defined _MSC_VER && ! defined LIBIDN_STATIC
-#   define IDNAPI __declspec(dllexport)
-#  elif defined _MSC_VER && ! defined LIBIDN_STATIC
-#   define IDNAPI __declspec(dllimport)
-#  else
 #   define IDNAPI
-#  endif
 # endif
 
 # include <stddef.h>		/* size_t */
--- contrib/libs/libidn/lib/tld.h	(index)
+++ contrib/libs/libidn/lib/tld.h	(working tree)
@@ -42,15 +42,7 @@
  */
 
 # ifndef IDNAPI
-#  if defined LIBIDN_BUILDING && defined HAVE_VISIBILITY && HAVE_VISIBILITY
-#   define IDNAPI __attribute__((__visibility__("default")))
-#  elif defined LIBIDN_BUILDING && defined _MSC_VER && ! defined LIBIDN_STATIC
-#   define IDNAPI __declspec(dllexport)
-#  elif defined _MSC_VER && ! defined LIBIDN_STATIC
-#   define IDNAPI __declspec(dllimport)
-#  else
 #   define IDNAPI
-#  endif
 # endif
 
 # ifdef __cplusplus