@@ -137,7 +137,7 @@ struct FinalizeData {
137
137
Hint* hint;
138
138
};
139
139
140
- #if (NAPI_VERSION > 3)
140
+ #if (NAPI_VERSION > 3 && !defined(__wasm32__) )
141
141
template <typename ContextType=void ,
142
142
typename Finalizer=std::function<void (Env, void *, ContextType*)>,
143
143
typename FinalizerDataType=void >
@@ -196,7 +196,7 @@ struct ThreadSafeFinalize {
196
196
FinalizerDataType* data;
197
197
Finalizer callback;
198
198
};
199
- #endif
199
+ #endif // NAPI_VERSION > 3 && !defined(__wasm32__)
200
200
201
201
template <typename Getter, typename Setter>
202
202
struct AccessorCallbackData {
@@ -4302,7 +4302,7 @@ inline void AsyncWorker::OnWorkComplete(Napi::Env /*env*/, napi_status status) {
4302
4302
}
4303
4303
}
4304
4304
4305
- #if (NAPI_VERSION > 3)
4305
+ #if (NAPI_VERSION > 3 && !defined(__wasm32__) )
4306
4306
// //////////////////////////////////////////////////////////////////////////////
4307
4307
// ThreadSafeFunction class
4308
4308
// //////////////////////////////////////////////////////////////////////////////
@@ -4969,7 +4969,7 @@ template<class T>
4969
4969
inline void AsyncProgressQueueWorker<T>::ExecutionProgress::Send(const T* data, size_t count) const {
4970
4970
_worker->SendProgress_ (data, count);
4971
4971
}
4972
- #endif
4972
+ #endif // NAPI_VERSION > 3 && !defined(__wasm32__)
4973
4973
4974
4974
// //////////////////////////////////////////////////////////////////////////////
4975
4975
// Memory Management class
0 commit comments