X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=liblttng-ust%2Fbytecode.h;h=25ade988f8086fc8df53cda83addebb138dee5ea;hb=9f5ade14faf36df6429d9c6e1d0360854a5669d0;hp=4b4b33b62cf170fc1ae1dc3d5b9cac56f508b7c3;hpb=b15c4010a54a79e955d82b46826d14c882276669;p=lttng-ust.git diff --git a/liblttng-ust/bytecode.h b/liblttng-ust/bytecode.h index 4b4b33b6..25ade988 100644 --- a/liblttng-ust/bytecode.h +++ b/liblttng-ust/bytecode.h @@ -10,10 +10,6 @@ #include #include -#ifndef LTTNG_PACKED -#error "LTTNG_PACKED should be defined" -#endif - /* * offsets are absolute from start of bytecode. */ @@ -26,15 +22,15 @@ struct field_ref { struct get_symbol { /* Symbol offset. */ uint16_t offset; -} LTTNG_PACKED; +} __attribute__((packed)); struct get_index_u16 { uint16_t index; -} LTTNG_PACKED; +} __attribute__((packed)); struct get_index_u64 { uint64_t index; -} LTTNG_PACKED; +} __attribute__((packed)); struct literal_numeric { int64_t v;