From c320a9e4e6d88c89f07df939a04cdfdfa80cbb32 Mon Sep 17 00:00:00 2001 From: bernie Date: Fri, 13 Aug 2004 03:23:26 +0000 Subject: [PATCH] Adjust a few MSVC tweaks from older projects. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@138 38d2e660-2303-0410-9eaa-f027e97ec537 --- compiler.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/compiler.h b/compiler.h index 500cb0c2..9acdfccc 100755 --- a/compiler.h +++ b/compiler.h @@ -15,6 +15,9 @@ /* * $Log$ + * Revision 1.15 2004/08/13 03:23:26 bernie + * Adjust a few MSVC tweaks from older projects. + * * Revision 1.14 2004/08/10 06:56:29 bernie * RESTRICT: New C99-like macro; STATIC_ASSERT: Fix warning for multiple invocation in one file. * @@ -119,10 +122,9 @@ #include #include /* for time_t */ - #define float double - /* Ouch, ReleaseSemaphore() conflicts with a WIN32 call ;-( */ - #define ReleaseSemaphore KReleaseSemaphore + /* FIXME: I can't remember why exactly this was needed (NdBernie) */ + #define float double /* Fake bool support */ #ifndef __cplusplus @@ -131,6 +133,10 @@ typedef int bool; #endif /* !__cplusplus */ + /* These C99 functions are oddly named in MSVCRT32.lib */ + #define snprintf _snprintf + #define vsnprintf _vsnprintf + #elif defined(__GNUC__) /* GCC attributes */ -- 2.25.1