| AAX SDK 2.6.1 Avid Audio Extensions Development Kit

- Welcome
- Manual
- Classes
- Files
- Lists
- Support

- File List
- File Members

Loading...
Searching...
No Matches
AAX_PopStructAlignment.h
Go to the documentation of this file.
1/*================================================================================================*/
2/*
3 *
4 * Copyright 2014-2015, 2018, 2023 Avid Technology, Inc.
5 * All rights reserved.
6 *
7 * CONFIDENTIAL: this document contains confidential information of Avid. Do
8 * not disclose to any third party. Use of the information contained in this
9 * document is subject to an Avid SDK license.
10 *
11 */
12
37/*================================================================================================*/
38
39// Nesting of struct alignment headers is not allowed
40#ifndef __AAX_CUSTOM_STRUCT_ALIGN_IS_SET__
41#error "No AAX struct alignment has been set. Cannot undo."
42#else
43#undef __AAX_CUSTOM_STRUCT_ALIGN_IS_SET__
44#endif
45
46#ifdef _TMS320C6X
47// Do nothing for TI
48#elif defined (_MSC_VER)
49#pragma pack(pop)
50#elif defined (__GNUC__)
51// Uncomment this warning suppression if you really want to apply packing to a virtual data
52// structure, but note that there is no guarantee of cross-platform compatibility for such
53// a structure. For more information, see the AAX_ALIGN_FILE_ALG macro documentation
54// #ifdef __clang__
55// #pragma clang diagnostic push
56// #pragma clang diagnostic ignored "-Wno-incompatible-ms-struct"
57// #endif
58#pragma ms_struct off
59// #ifdef __clang__
60// #pragma clang diagnostic pop
61// #endif
62#pragma pack(pop)
63#elif defined (__MWERKS__)
64#pragma options align=reset
65#else
66#error "You need to supply a pragma here to pop structure packing"
67#endif