From d1722af79bbee6f8e7a1fa2376a6ed409cdd87b1 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Wed, 25 Sep 2024 09:42:22 +0100 Subject: [PATCH] check func munging https://github.com/warmcat/libwebsockets/issues/3181 --- include/libwebsockets.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/libwebsockets.h b/include/libwebsockets.h index 7454828a4..1f352d1d4 100644 --- a/include/libwebsockets.h +++ b/include/libwebsockets.h @@ -132,7 +132,7 @@ typedef int suseconds_t; #define LWS_O_CREAT _O_CREAT #define LWS_O_TRUNC _O_TRUNC -#ifndef __func__ +#if (__STDC_VERSION__ < 199901L) && !defined(__func__) #define __func__ __FUNCTION__ #endif