X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=compiler.h;h=9acdfccc85b7e5fd80d6c50b012d691c337e0d53;hb=de2caf08ef2eca066c3d5a40ab91d7f34c3f555e;hp=500cb0c2bddf7e7bacea816d74478995d90fbf04;hpb=247c83c29466e78214c7a1305274edc2778b92c5;p=bertos.git 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 */