projects
/
bertos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5523f6
)
Add PACKED attribute.
author
batt
<batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 4 Mar 2008 14:30:31 +0000
(14:30 +0000)
committer
batt
<batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 4 Mar 2008 14:30:31 +0000
(14:30 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1158
38d2e660
-2303-0410-9eaa-
f027e97ec537
cfg/compiler.h
patch
|
blob
|
history
diff --git
a/cfg/compiler.h
b/cfg/compiler.h
index 6485473cf2f12d086e99acca3599b83fbbfb5a0e..96745521fe864280d5f9db85879db290a4bd3e5a 100644
(file)
--- a/
cfg/compiler.h
+++ b/
cfg/compiler.h
@@
-180,6
+180,7
@@
#define USED_FUNC __attribute__((__used__))
#define RESTRICT __restrict__
#define MUST_CHECK __attribute__((warn_unused_result))
+ #define PACKED __attribute__((packed))
#if GNUC_PREREQ(3,1)
#define DEPRECATED __attribute__((__deprecated__))
#endif
@@
-309,6
+310,10
@@
#ifndef MUST_CHECK
#define MUST_CHECK /* nothing */
#endif
+#ifndef PACKED
+#define PACKED /* nothing */
+#endif
+
/* Misc definitions */
#ifndef NULL