Adjust for DevLib.
[bertos.git] / compiler.h
index 500cb0c2bddf7e7bacea816d74478995d90fbf04..9acdfccc85b7e5fd80d6c50b012d691c337e0d53 100755 (executable)
@@ -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.
  *
 
        #include <setjmp.h>
        #include <time.h> /* 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
                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 */