From fed13534c595c52fdd2cbf64d7bffe83de74ef35 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 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 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;