From: bernie Date: Thu, 23 Feb 2006 08:36:33 +0000 (+0000) Subject: Emulate __func__ on MSVC. X-Git-Tag: 1.0.0~700 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=538cda9e88e5c6052f461bc253d588a35f747a28;p=bertos.git Emulate __func__ on MSVC. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@541 38d2e660-2303-0410-9eaa-f027e97ec537 --- 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 */