projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adjust for DevLib.
[bertos.git]
/
compiler.h
diff --git
a/compiler.h
b/compiler.h
index 500cb0c2bddf7e7bacea816d74478995d90fbf04..9acdfccc85b7e5fd80d6c50b012d691c337e0d53 100755
(executable)
--- a/
compiler.h
+++ b/
compiler.h
@@
-15,6
+15,9
@@
/*
* $Log$
/*
* $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.
*
* 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 <setjmp.h>
#include <time.h> /* for time_t */
#include <setjmp.h>
#include <time.h> /* for time_t */
- #define float double
- /*
Ouch, ReleaseSemaphore() conflicts with a WIN32 call ;-(
*/
- #define
ReleaseSemaphore KReleaseSemaphor
e
+ /*
FIXME: I can't remember why exactly this was needed (NdBernie)
*/
+ #define
float doubl
e
/* Fake bool support */
#ifndef __cplusplus
/* Fake bool support */
#ifndef __cplusplus
@@
-131,6
+133,10
@@
typedef int bool;
#endif /* !__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 */
#elif defined(__GNUC__)
/* GCC attributes */