X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/56f57e5b36301ac84c1ca5d4eb7fa363f79c81f6..938d06268877e85c711ee8adb4c38673d61ee67e:/JavaScript.hpp?ds=inline diff --git a/JavaScript.hpp b/JavaScript.hpp index a94dbb9..e4af17b 100644 --- a/JavaScript.hpp +++ b/JavaScript.hpp @@ -205,6 +205,7 @@ class CYJSString { } }; +#ifdef __APPLE__ typedef struct OpaqueJSWeakObjectMap *JSWeakObjectMapRef; typedef void (*JSWeakMapDestroyedCallback)(JSWeakObjectMapRef map, void *data); @@ -213,5 +214,6 @@ extern "C" void JSWeakObjectMapSet(JSContextRef ctx, JSWeakObjectMapRef map, voi extern "C" JSObjectRef JSWeakObjectMapGet(JSContextRef ctx, JSWeakObjectMapRef map, void *key) __attribute__((__weak_import__)); extern "C" bool JSWeakObjectMapClear(JSContextRef ctx, JSWeakObjectMapRef map, void *key, JSObjectRef object) __attribute__((__weak_import__)); extern "C" void JSWeakObjectMapRemove(JSContextRef ctx, JSWeakObjectMapRef map, void* key) __attribute__((__weak_import__)); +#endif #endif/*CYCRIPT_JAVASCRIPT_HPP*/