diff --git a/ReactCommon/cxxreact/Platform.h b/ReactCommon/cxxreact/Platform.h index 6d1ce2561..c8a63c746 100644 --- a/ReactCommon/cxxreact/Platform.h +++ b/ReactCommon/cxxreact/Platform.h @@ -31,7 +31,11 @@ enum ReactMarkerId { NATIVE_MODULE_SETUP_STOP, }; +#ifdef __APPLE__ using LogTaggedMarker = std::function; +#else +typedef void(*LogTaggedMarker)(const ReactMarkerId, const char* tag); +#endif extern RN_EXPORT LogTaggedMarker logTaggedMarker; extern void logMarker(const ReactMarkerId markerId); @@ -50,7 +54,7 @@ using Hook = JSValueRef(*)( extern RN_EXPORT Hook loggingHook; extern RN_EXPORT Hook nowHook; -using ConfigurationHook = std::function; +typedef void(*ConfigurationHook)(JSGlobalContextRef); extern RN_EXPORT ConfigurationHook installPerfHooks; }