From 277af337cbdbb9a2f5322aeb2c1c42296625bc57 Mon Sep 17 00:00:00 2001 From: Ariel Abreu Date: Mon, 31 Aug 2020 19:10:11 -0400 Subject: [PATCH] Case-sensitivity header filename issue --- API/JSContext.mm | 4 ++++ API/JSManagedValue.mm | 4 ++++ API/JSValue.mm | 4 ++++ API/JSWrapperMap.mm | 4 ++++ API/ObjCCallbackFunction.mm | 5 +++++ 5 files changed, 21 insertions(+) diff --git a/API/JSContext.mm b/API/JSContext.mm index bb01ae5..f1efd09 100644 --- a/API/JSContext.mm +++ b/API/JSContext.mm @@ -39,7 +39,11 @@ #import "JSVirtualMachineInternal.h" #import "JSWrapperMap.h" #import "JavaScriptCore.h" +#ifdef DARLING +#import "ObjCRuntimeExtras.h" +#else #import "ObjcRuntimeExtras.h" +#endif #import "StrongInlines.h" #ifdef DARLING_NONUNIFIED_BUILD #include "JSScriptInternal.h" diff --git a/API/JSManagedValue.mm b/API/JSManagedValue.mm index 9f5dd88..be90515 100644 --- a/API/JSManagedValue.mm +++ b/API/JSManagedValue.mm @@ -35,7 +35,11 @@ #import "JSValueInternal.h" #import "JSWeakValue.h" #import "WeakHandleOwner.h" +#ifdef DARLING +#import "ObjCRuntimeExtras.h" +#else #import "ObjcRuntimeExtras.h" +#endif #import "JSCInlines.h" #import diff --git a/API/JSValue.mm b/API/JSValue.mm index 86e10cf..12b8ea4 100644 --- a/API/JSValue.mm +++ b/API/JSValue.mm @@ -36,7 +36,11 @@ #import "JSValueInternal.h" #import "JSValuePrivate.h" #import "JSWrapperMap.h" +#ifdef DARLING +#import "ObjCRuntimeExtras.h" +#else #import "ObjcRuntimeExtras.h" +#endif #import "JSCInlines.h" #import "JSCJSValue.h" #import "Strong.h" diff --git a/API/JSWrapperMap.mm b/API/JSWrapperMap.mm index d469b75..053ee65 100644 --- a/API/JSWrapperMap.mm +++ b/API/JSWrapperMap.mm @@ -35,7 +35,11 @@ #import "JSContextInternal.h" #import "JSWrapperMap.h" #import "ObjCCallbackFunction.h" +#ifdef DARLING +#import "ObjCRuntimeExtras.h" +#else #import "ObjcRuntimeExtras.h" +#endif #import "ObjectConstructor.h" #import "WeakGCMap.h" #import "WeakGCMapInlines.h" diff --git a/API/ObjCCallbackFunction.mm b/API/ObjCCallbackFunction.mm index c4e73a8..11a3306 100644 --- a/API/ObjCCallbackFunction.mm +++ b/API/ObjCCallbackFunction.mm @@ -37,7 +37,12 @@ #import "JSWrapperMap.h" #import "JSValueInternal.h" #import "ObjCCallbackFunction.h" +#ifdef DARLING +// ugh, Apple with their stupid case-insensitivity +#import "ObjCRuntimeExtras.h" +#else #import "ObjcRuntimeExtras.h" +#endif #import "StructureInlines.h" #import #import