09-fix-IDNAPI-define.patch 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. --- contrib/libs/libidn/lib/idn-free.h (9920c22126a48eb778c3500fc4c98e84a275c80a)
  2. +++ contrib/libs/libidn/lib/idn-free.h (cdd34515220d5a3cb13a2d6cb6a8a64d9e8eabf5)
  3. @@ -39,15 +39,7 @@
  4. */
  5. # ifndef IDNAPI
  6. -# if defined LIBIDN_BUILDING && defined HAVE_VISIBILITY && HAVE_VISIBILITY
  7. -# define IDNAPI __attribute__((__visibility__("default")))
  8. -# elif defined LIBIDN_BUILDING && defined _MSC_VER && ! defined LIBIDN_STATIC
  9. -# define IDNAPI __declspec(dllexport)
  10. -# elif defined _MSC_VER && ! defined LIBIDN_STATIC
  11. -# define IDNAPI __declspec(dllimport)
  12. -# else
  13. # define IDNAPI
  14. -# endif
  15. # endif
  16. # ifdef __cplusplus
  17. --- contrib/libs/libidn/lib/pr29.h (9920c22126a48eb778c3500fc4c98e84a275c80a)
  18. +++ contrib/libs/libidn/lib/pr29.h (cdd34515220d5a3cb13a2d6cb6a8a64d9e8eabf5)
  19. @@ -39,15 +39,7 @@
  20. */
  21. # ifndef IDNAPI
  22. -# if defined LIBIDN_BUILDING && defined HAVE_VISIBILITY && HAVE_VISIBILITY
  23. -# define IDNAPI __attribute__((__visibility__("default")))
  24. -# elif defined LIBIDN_BUILDING && defined _MSC_VER && ! defined LIBIDN_STATIC
  25. -# define IDNAPI __declspec(dllexport)
  26. -# elif defined _MSC_VER && ! defined LIBIDN_STATIC
  27. -# define IDNAPI __declspec(dllimport)
  28. -# else
  29. # define IDNAPI
  30. -# endif
  31. # endif
  32. # ifdef __cplusplus
  33. --- contrib/libs/libidn/lib/stringprep.h (9920c22126a48eb778c3500fc4c98e84a275c80a)
  34. +++ contrib/libs/libidn/lib/stringprep.h (cdd34515220d5a3cb13a2d6cb6a8a64d9e8eabf5)
  35. @@ -43,15 +43,7 @@ typedef int ssize_t;
  36. */
  37. # ifndef IDNAPI
  38. -# if defined LIBIDN_BUILDING && defined HAVE_VISIBILITY && HAVE_VISIBILITY
  39. -# define IDNAPI __attribute__((__visibility__("default")))
  40. -# elif defined LIBIDN_BUILDING && defined _MSC_VER && ! defined LIBIDN_STATIC
  41. -# define IDNAPI __declspec(dllexport)
  42. -# elif defined _MSC_VER && ! defined LIBIDN_STATIC
  43. -# define IDNAPI __declspec(dllimport)
  44. -# else
  45. # define IDNAPI
  46. -# endif
  47. # endif
  48. # include <stddef.h> /* size_t */
  49. --- contrib/libs/libidn/lib/idna.h (index)
  50. +++ contrib/libs/libidn/lib/idna.h (working tree)
  51. @@ -49,15 +49,7 @@
  52. * https://www.gnu.org/software/gnulib/manual/html_node/Exported-Symbols-of-Shared-Libraries.html
  53. */
  54. # ifndef IDNAPI
  55. -# if defined LIBIDN_BUILDING && defined HAVE_VISIBILITY && HAVE_VISIBILITY
  56. -# define IDNAPI __attribute__((__visibility__("default")))
  57. -# elif defined LIBIDN_BUILDING && defined _MSC_VER && ! defined LIBIDN_STATIC
  58. -# define IDNAPI __declspec(dllexport)
  59. -# elif defined _MSC_VER && ! defined LIBIDN_STATIC
  60. -# define IDNAPI __declspec(dllimport)
  61. -# else
  62. # define IDNAPI
  63. -# endif
  64. # endif
  65. # include <stddef.h> /* size_t */
  66. --- contrib/libs/libidn/lib/tld.h (index)
  67. +++ contrib/libs/libidn/lib/tld.h (working tree)
  68. @@ -42,15 +42,7 @@
  69. */
  70. # ifndef IDNAPI
  71. -# if defined LIBIDN_BUILDING && defined HAVE_VISIBILITY && HAVE_VISIBILITY
  72. -# define IDNAPI __attribute__((__visibility__("default")))
  73. -# elif defined LIBIDN_BUILDING && defined _MSC_VER && ! defined LIBIDN_STATIC
  74. -# define IDNAPI __declspec(dllexport)
  75. -# elif defined _MSC_VER && ! defined LIBIDN_STATIC
  76. -# define IDNAPI __declspec(dllimport)
  77. -# else
  78. # define IDNAPI
  79. -# endif
  80. # endif
  81. # ifdef __cplusplus