projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix naming conventions.
[bertos.git]
/
cfg
/
compiler.h
diff --git
a/cfg/compiler.h
b/cfg/compiler.h
index dfeee567ca0ae132ed2b8056eddbc85cd352d47b..028ef3ad57fafaeabedba505713993b3e18836de 100755
(executable)
--- a/
cfg/compiler.h
+++ b/
cfg/compiler.h
@@
-14,6
+14,12
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.19 2006/04/11 00:07:33 bernie
+ *#* Implemenent MF_SAVESEL flag.
+ *#*
+ *#* Revision 1.18 2006/03/22 13:34:34 bernie
+ *#* MSVC support.
+ *#*
*#* Revision 1.17 2006/03/22 09:48:35 bernie
*#* Formatting.
*#*
*#* Revision 1.17 2006/03/22 09:48:35 bernie
*#* Formatting.
*#*
@@
-196,6
+202,11
@@
/* MSVC doesn't support C99's __func__, but has a similar extension. */
#define __func__ __FUNCTION__
/* MSVC doesn't support C99's __func__, but has a similar extension. */
#define __func__ __FUNCTION__
+ /* MSVC doesn't support C99's inline keyword */
+ #ifndef __cplusplus
+ #define INLINE __inline
+ #endif
+
#elif defined(__GNUC__)
/* Compiler features */
#elif defined(__GNUC__)
/* Compiler features */
@@
-363,11
+374,13
@@
#define EXTERN_C_BEGIN extern "C" {
#define EXTERN_C_END }
#define EXTERN_CONST extern const
#define EXTERN_C_BEGIN extern "C" {
#define EXTERN_C_END }
#define EXTERN_CONST extern const
+ #define CONST_CAST(TYPE,EXPR) (const_cast<TYPE>(EXPR))
#else
#define EXTERN_C extern
#define EXTERN_C_BEGIN /* nothing */
#define EXTERN_C_END /* nothing */
#define EXTERN_CONST const
#else
#define EXTERN_C extern
#define EXTERN_C_BEGIN /* nothing */
#define EXTERN_C_END /* nothing */
#define EXTERN_CONST const
+ #define CONST_CAST(TYPE,EXPR) ((TYPE)(EXPR)) /* FIXME: How can we suppress the warning in C? */
#endif
#endif