@@ -137,7 +137,7 @@ struct FinalizeData {
137137 Hint* hint;
138138};
139139
140- #if (NAPI_VERSION > 3)
140+ #if (NAPI_VERSION > 3 && !defined(__wasm32__) )
141141template <typename ContextType=void ,
142142 typename Finalizer=std::function<void (Env, void *, ContextType*)>,
143143 typename FinalizerDataType=void >
@@ -196,7 +196,7 @@ struct ThreadSafeFinalize {
196196 FinalizerDataType* data;
197197 Finalizer callback;
198198};
199- #endif
199+ #endif // NAPI_VERSION > 3 && !defined(__wasm32__)
200200
201201template <typename Getter, typename Setter>
202202struct AccessorCallbackData {
@@ -4302,7 +4302,7 @@ inline void AsyncWorker::OnWorkComplete(Napi::Env /*env*/, napi_status status) {
43024302 }
43034303}
43044304
4305- #if (NAPI_VERSION > 3)
4305+ #if (NAPI_VERSION > 3 && !defined(__wasm32__) )
43064306// //////////////////////////////////////////////////////////////////////////////
43074307// ThreadSafeFunction class
43084308// //////////////////////////////////////////////////////////////////////////////
@@ -4969,7 +4969,7 @@ template<class T>
49694969inline void AsyncProgressQueueWorker<T>::ExecutionProgress::Send(const T* data, size_t count) const {
49704970 _worker->SendProgress_ (data, count);
49714971}
4972- #endif
4972+ #endif // NAPI_VERSION > 3 && !defined(__wasm32__)
49734973
49744974// //////////////////////////////////////////////////////////////////////////////
49754975// Memory Management class
0 commit comments