Skip to content

Commit

Permalink
new patch
Browse files Browse the repository at this point in the history
  • Loading branch information
mgautierfr committed Nov 29, 2023
1 parent 5cd8cd0 commit 39ec596
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions kiwixbuild/patches/xapian_mode_t_windows.patch
Original file line number Diff line number Diff line change
Expand Up @@ -81,18 +81,18 @@ diff '--color=auto' -ur xapian-core-1.4.23_orig/common/safesysstat.h xapian-core

diff '--color=auto' -ur xapian-core-1.4.23_orig/include/xapian/visibility.h xapian-core-1.4.23/include/xapian/visibility.h
--- xapian-core-1.4.23_orig/include/xapian/visibility.h 2023-07-07 03:59:19.000000000 +0200
+++ xapian-core-1.4.23/include/xapian/visibility.h 2023-11-29 10:31:22.780051905 +0100
+++ xapian-core-1.4.23/include/xapian/visibility.h 2023-11-29 11:24:24.392555665 +0100
@@ -24,10 +24,15 @@
// symbol visibility support.

#include "xapian/version.h"
-#ifdef XAPIAN_ENABLE_VISIBILITY
-# define XAPIAN_VISIBILITY_DEFAULT __attribute__((visibility("default")))
-#else
+
+#if defined _WIN32 || defined __CYGWIN__
+# define XAPIAN_VISIBILITY_DEFAULT __declspec(dllexport)
#else
-# define XAPIAN_VISIBILITY_DEFAULT
# define XAPIAN_VISIBILITY_DEFAULT
+#else
+# ifdef XAPIAN_ENABLE_VISIBILITY
+# define XAPIAN_VISIBILITY_DEFAULT __attribute__((visibility("default")))
+# else
Expand Down

0 comments on commit 39ec596

Please sign in to comment.