From dc25e0b996853f069ea4b38d9720b6bac14349b7 Mon Sep 17 00:00:00 2001 From: Kevin Eady <8634912+KevinEady@users.noreply.github.com> Date: Fri, 11 Jun 2021 17:25:34 -0400 Subject: [PATCH] src: fix gcc-11 c++20 compilation Closes: #1007 --- napi.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/napi.h b/napi.h index 7dc9b17df..8e9f5214a 100644 --- a/napi.h +++ b/napi.h @@ -2474,9 +2474,8 @@ namespace Napi { Finalizer finalizeCallback, FinalizerDataType* data = nullptr); - TypedThreadSafeFunction(); - TypedThreadSafeFunction( - napi_threadsafe_function tsFunctionValue); + TypedThreadSafeFunction(); + TypedThreadSafeFunction(napi_threadsafe_function tsFunctionValue); operator napi_threadsafe_function() const;