diff --git a/hsjscore.h b/hsjscore.h
--- a/hsjscore.h
+++ b/hsjscore.h
@@ -17,11 +17,21 @@
  * Boston, MA 02110-1301, USA.
  */
 
+#ifndef HS_WEBKITJAVASCRIPTCORE_H
+#define HS_WEBKITJAVASCRIPTCORE_H
+
 #ifdef __BLOCKS__
 #undef __BLOCKS__
 #endif
-#ifndef HS_WEBKITJAVASCRIPTCORE_H
-#define HS_WEBKITJAVASCRIPTCORE_H
+
+#ifdef __clang__
+#undef __clang__
+#endif
+
+#ifndef JSC_API_AVAILABLE
+#define JSC_API_AVAILABLE(...)
+#endif
+
 /* to avoid stdbool.h error in JavaScriptCore/JSBase.h*/
 #define _Bool unsigned char // unsigned short // previously, int
 
diff --git a/webkit2gtk3-javascriptcore.cabal b/webkit2gtk3-javascriptcore.cabal
--- a/webkit2gtk3-javascriptcore.cabal
+++ b/webkit2gtk3-javascriptcore.cabal
@@ -1,5 +1,5 @@
 Name:           webkit2gtk3-javascriptcore
-Version:        0.14.4.1
+Version:        0.14.4.2
 Synopsis:       JavaScriptCore FFI from webkitgtk
 Description:    FFI for JavaScriptCore module from webkitgtk
 License:        BSD3
@@ -52,6 +52,6 @@
         include-dirs: .
         cpp-options: -DDISABLE_DEPRECATED -U__BLOCKS__ -DGLIB_DISABLE_DEPRECATION_WARNINGS
         if os(darwin) || os(freebsd)
-          cpp-options: -D_Nullable= -D_Nonnull= -D_Noreturn=
+          cpp-options: -D_Nullable= -D_Nonnull= -D_Noreturn= -D__attribute__(x)=
         x-c2hs-Header:  hsjscore.h
         pkgconfig-depends: webkit2gtk-4.0 >=1.1.15
