From 5472d295ed805f1e517e6fcd3419c853126042b8 Mon Sep 17 00:00:00 2001 From: batt Date: Tue, 4 Mar 2008 14:30:31 +0000 Subject: [PATCH] Add PACKED attribute. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1158 38d2e660-2303-0410-9eaa-f027e97ec537 --- cfg/compiler.h | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.25.1