From 11cf4bcdd925630fdf0b47b65e216b7dfdf7f8f8 Mon Sep 17 00:00:00 2001 From: Marly Fleitas Date: Fri, 11 Jun 2021 17:25:34 -0400 Subject: [PATCH] src: fix gcc-11 c++20 compilation Fixes: https://github.com/nodejs/node-addon-api/issues/1007 PR-URL: https://github.com/nodejs/node-addon-api/pull/1009 Reviewed-By: Michael Dawson --- napi.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/napi.h b/napi.h index 7dc9b17..8e9f521 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;