diff --git a/transport.h b/transport.h index 0f57a8c..9639abf 100644 --- a/transport.h +++ b/transport.h @@ -28,22 +28,6 @@ extern "C" { #include #include -#ifndef POST_PACKED_STRUCTURE -#ifdef __GNUC__ -/* POST_PACKED_STRUCTURE needs to be a macro which - expands into a compiler directive. The directive must - tell the compiler to arrange the preceding structure - declaration so that it is packed on byte-boundaries rather - than use the natural alignment of the processor and/or - compiler. -*/ -#define POST_PACKED_STRUCTURE __attribute__((__packed__)) -#else -/* Add other things here for non-gcc platforms */ -#endif -#endif - - /** * Transport states. */ diff --git a/types.h b/types.h index c6f0905..1e17917 100644 --- a/types.h +++ b/types.h @@ -29,6 +29,22 @@ typedef uint64_t jack_uuid_t; typedef int32_t jack_shmsize_t; +#ifndef POST_PACKED_STRUCTURE +#ifdef __GNUC__ +/* POST_PACKED_STRUCTURE needs to be a macro which + expands into a compiler directive. The directive must + tell the compiler to arrange the preceding structure + declaration so that it is packed on byte-boundaries rather + than use the natural alignment of the processor and/or + compiler. +*/ +# define POST_PACKED_STRUCTURE __attribute__((__packed__)) +#else +/* Add other things here for non-gcc platforms */ +#endif +#endif + + /** * Type used to represent sample frame counts. */