From d928b148d86fcd1e7f26dc265029a36b14c3c1d4 Mon Sep 17 00:00:00 2001 From: Dominik Maier Date: Fri, 10 Apr 2020 20:57:46 +0200 Subject: tackeled some warnings --- include/debug.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/debug.h') diff --git a/include/debug.h b/include/debug.h index ff2845f9..8824ff6b 100644 --- a/include/debug.h +++ b/include/debug.h @@ -28,6 +28,15 @@ #include "types.h" #include "config.h" +/* __FUNCTION__ is non-iso */ +#ifndef __FUNCTION__ +#ifdef __func__ +#define __FUNCTION__ __func__ +#else +#define __FUNCTION__ "func_unknown" +#endif +#endif + /******************* * Terminal colors * *******************/ -- cgit 1.4.1