Skip to content

Commit 099f587

Browse files
committed
Fix for macOS
1 parent f5bd760 commit 099f587

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

hsjscore.h

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,21 @@
1717
* Boston, MA 02110-1301, USA.
1818
*/
1919

20+
#ifndef HS_WEBKITJAVASCRIPTCORE_H
21+
#define HS_WEBKITJAVASCRIPTCORE_H
22+
2023
#ifdef __BLOCKS__
2124
#undef __BLOCKS__
2225
#endif
23-
#ifndef HS_WEBKITJAVASCRIPTCORE_H
24-
#define HS_WEBKITJAVASCRIPTCORE_H
26+
27+
#ifdef __clang__
28+
#undef __clang__
29+
#endif
30+
31+
#ifndef JSC_API_AVAILABLE
32+
#define JSC_API_AVAILABLE(...)
33+
#endif
34+
2535
/* to avoid stdbool.h error in JavaScriptCore/JSBase.h*/
2636
#define _Bool unsigned char // unsigned short // previously, int
2737

webkit2gtk3-javascriptcore.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Name: webkit2gtk3-javascriptcore
2-
Version: 0.14.4.1
2+
Version: 0.14.4.2
33
Synopsis: JavaScriptCore FFI from webkitgtk
44
Description: FFI for JavaScriptCore module from webkitgtk
55
License: BSD3
@@ -52,6 +52,6 @@ Library
5252
include-dirs: .
5353
cpp-options: -DDISABLE_DEPRECATED -U__BLOCKS__ -DGLIB_DISABLE_DEPRECATION_WARNINGS
5454
if os(darwin) || os(freebsd)
55-
cpp-options: -D_Nullable= -D_Nonnull= -D_Noreturn=
55+
cpp-options: -D_Nullable= -D_Nonnull= -D_Noreturn= -D__attribute__(x)=
5656
x-c2hs-Header: hsjscore.h
5757
pkgconfig-depends: webkit2gtk-4.0 >=1.1.15

0 commit comments

Comments
 (0)