diff options
Diffstat (limited to 'xine_osd_command.h')
-rw-r--r-- | xine_osd_command.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/xine_osd_command.h b/xine_osd_command.h index c100a394..e60c4a2e 100644 --- a/xine_osd_command.h +++ b/xine_osd_command.h @@ -4,13 +4,20 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_osd_command.h,v 1.3 2006-07-06 02:57:59 phintuka Exp $ + * $Id: xine_osd_command.h,v 1.4 2007-01-01 23:39:02 phintuka Exp $ * */ #ifndef __XINE_OSD_COMMAND_H_ #define __XINE_OSD_COMMAND_H_ +#ifndef PACKED +# define PACKED __attribute__((packed)) +#else +# warning PACKED already defined +#endif + + #define MAX_OSD_OBJECT 50 #if defined __cplusplus @@ -32,12 +39,12 @@ typedef struct xine_clut_s { uint8_t cr : 8; uint8_t y : 8; uint8_t alpha : 8; -} __attribute__((packed)) xine_clut_t; /* from xine, alphablend.h */ +} PACKED xine_clut_t; /* from xine, alphablend.h */ typedef struct xine_rle_elem_s { uint16_t len; uint16_t color; -} __attribute__((packed)) xine_rle_elem_t; /* from xine */ +} PACKED xine_rle_elem_t; /* from xine */ typedef struct osd_command_s { uint32_t cmd; /* osd_command_id_t */ @@ -65,7 +72,7 @@ typedef struct osd_command_s { uint64_t dummy02; }; -} __attribute__((packed)) osd_command_t; +} PACKED osd_command_t; #if defined __cplusplus |