Add PACKED attribute.
authorbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 4 Mar 2008 14:30:31 +0000 (14:30 +0000)
committerbatt <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

index 6485473cf2f12d086e99acca3599b83fbbfb5a0e..96745521fe864280d5f9db85879db290a4bd3e5a 100644 (file)
        #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
 #ifndef MUST_CHECK
 #define MUST_CHECK             /* nothing */
 #endif
+#ifndef PACKED
+#define PACKED                 /* nothing */
+#endif
+
 
 /* Misc definitions */
 #ifndef NULL