From: batt Date: Tue, 4 Mar 2008 14:30:31 +0000 (+0000) Subject: Add PACKED attribute. X-Git-Tag: 1.0.0~94 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=5472d295ed805f1e517e6fcd3419c853126042b8;p=bertos.git Add PACKED attribute. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1158 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/cfg/compiler.h b/cfg/compiler.h index 6485473c..96745521 100644 --- 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