From 538cda9e88e5c6052f461bc253d588a35f747a28 Mon Sep 17 00:00:00 2001 From: bernie Date: Thu, 23 Feb 2006 08:36:33 +0000 Subject: [PATCH] Emulate __func__ on MSVC. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@541 38d2e660-2303-0410-9eaa-f027e97ec537 --- cfg/compiler.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cfg/compiler.h b/cfg/compiler.h index 96cfa2b2..e9d7567c 100755 --- a/cfg/compiler.h +++ b/cfg/compiler.h @@ -14,6 +14,9 @@ /*#* *#* $Log$ + *#* Revision 1.14 2006/02/23 08:36:33 bernie + *#* Emulate __func__ on MSVC. + *#* *#* Revision 1.13 2006/02/23 07:37:37 bernie *#* Compile fix for MSVC. *#* @@ -181,6 +184,9 @@ #define snprintf _snprintf #define vsnprintf _vsnprintf + /* MSVC doesn't support C99's __func__, but has a similar extension. */ + #define __func__ __FUNCTION__ + #elif defined(__GNUC__) /* Compiler features */ -- 2.25.1