From 8d27d941c38b0fb3ff8d67d46ff330e3319bc047 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 f2c813b17..c980036b9 100644 --- a/include/libwebsockets.h +++ b/include/libwebsockets.h @@ -142,7 +142,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