projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add demo application.
[bertos.git]
/
cfg
/
compiler.h
diff --git
a/cfg/compiler.h
b/cfg/compiler.h
index 6eaf1482385ee71cf0c11ea78b470ffa246b6328..dfeee567ca0ae132ed2b8056eddbc85cd352d47b 100755
(executable)
--- a/
cfg/compiler.h
+++ b/
cfg/compiler.h
@@
-14,6
+14,12
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.17 2006/03/22 09:48:35 bernie
+ *#* Formatting.
+ *#*
+ *#* Revision 1.16 2006/03/20 17:48:09 bernie
+ *#* Fix for avr-libc; INTERRUPT(): Remove macro.
+ *#*
*#* Revision 1.15 2006/03/13 02:06:25 bernie
*#* containerof(): New macro.
*#*
*#* Revision 1.15 2006/03/13 02:06:25 bernie
*#* containerof(): New macro.
*#*
@@
-227,7
+233,9
@@
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
+ #if !CPU_AVR
#include <sys/types.h> /* for ssize_t */
#include <sys/types.h> /* for ssize_t */
+ #endif
#ifndef __cplusplus
/*
#ifndef __cplusplus
/*
@@
-315,9
+323,6
@@
#ifndef REGISTER
#define REGISTER /* nothing */
#endif
#ifndef REGISTER
#define REGISTER /* nothing */
#endif
-#ifndef INTERRUPT
-#define INTERRUPT(x) ERROR_NOT_IMPLEMENTED
-#endif
#ifndef LIKELY
#define LIKELY(x) x
#endif
#ifndef LIKELY
#define LIKELY(x) x
#endif
@@
-357,12
+362,12
@@
#define EXTERN_C extern "C"
#define EXTERN_C_BEGIN extern "C" {
#define EXTERN_C_END }
#define EXTERN_C extern "C"
#define EXTERN_C_BEGIN extern "C" {
#define EXTERN_C_END }
- #define EXTERN_CONST extern const
+ #define EXTERN_CONST extern const
#else
#define EXTERN_C extern
#define EXTERN_C_BEGIN /* nothing */
#define EXTERN_C_END /* nothing */
#else
#define EXTERN_C extern
#define EXTERN_C_BEGIN /* nothing */
#define EXTERN_C_END /* nothing */
- #define EXTERN_CONST const
+ #define EXTERN_CONST const
#endif
#endif