]> git.alsa-project.org Git - alsa-lib.git/commitdiff
added packed attribute to have a consistent event data size on
authorTakashi Iwai <tiwai@suse.de>
Fri, 21 Jun 2002 12:24:34 +0000 (12:24 +0000)
committerTakashi Iwai <tiwai@suse.de>
Fri, 21 Jun 2002 12:24:34 +0000 (12:24 +0000)
both 32 and 64bit modes.

include/seq_event.h

index 501ced7da266556062dd4818127f28020f9059cf..6fb0f4c1e0c236015ed5bbc2f32b9b5ac47b245e 100644 (file)
@@ -315,7 +315,7 @@ typedef struct snd_seq_ev_raw32 {
 typedef struct snd_seq_ev_ext {
        unsigned int len;               /**< length of data */
        void *ptr;                      /**< pointer to data (note: can be 64-bit) */
-} snd_seq_ev_ext_t;
+} __attribute__((packed)) snd_seq_ev_ext_t;
 
 /** Instrument cluster type */
 typedef unsigned int snd_seq_instr_cluster_t;