\hypertarget{a00410_source}{}\doxysection{AAX\+\_\+\+Push2\+Byte\+Struct\+Alignment.\+h}
\label{a00410_source}\index{AAX\_Push2ByteStructAlignment.h@{AAX\_Push2ByteStructAlignment.h}}
\mbox{\hyperlink{a00410}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{comment}{/*================================================================================================*/}}
\DoxyCodeLine{00002\ \textcolor{comment}{/*}}
\DoxyCodeLine{00003\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00004\ \textcolor{comment}{\ *\ \ Copyright\ 2014-\/2015,\ 2018,\ 2023\ Avid\ Technology,\ Inc.}}
\DoxyCodeLine{00005\ \textcolor{comment}{\ *\ \ All\ rights\ reserved.}}
\DoxyCodeLine{00006\ \textcolor{comment}{\ *\ \ }}
\DoxyCodeLine{00007\ \textcolor{comment}{\ *\ \ CONFIDENTIAL:\ this\ document\ contains\ confidential\ information\ of\ Avid.\ Do}}
\DoxyCodeLine{00008\ \textcolor{comment}{\ *\ \ not\ disclose\ to\ any\ third\ party.\ Use\ of\ the\ information\ contained\ in\ this}}
\DoxyCodeLine{00009\ \textcolor{comment}{\ *\ \ document\ is\ subject\ to\ an\ Avid\ SDK\ license.}}
\DoxyCodeLine{00010\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00011\ \textcolor{comment}{\ */}}
\DoxyCodeLine{00012\ }
\DoxyCodeLine{00062\ \textcolor{comment}{/*================================================================================================*/}}
\DoxyCodeLine{00063\ }
\DoxyCodeLine{00064\ \textcolor{preprocessor}{\#ifdef\ \_TMS320C6X}}
\DoxyCodeLine{00065\ \textcolor{preprocessor}{\#error\ "{}TI\ structure\ packing\ changes\ not\ supported"{}}}
\DoxyCodeLine{00066\ \textcolor{preprocessor}{\#elif\ defined\ (\_MSC\_VER)}}
\DoxyCodeLine{00067\ \textcolor{preprocessor}{\#pragma\ warning(\ disable\ :\ 4103\ )\ }\textcolor{comment}{//\ used\ \#pragma\ pack\ to\ change\ alignment}}
\DoxyCodeLine{00068\ \textcolor{preprocessor}{\#pragma\ pack(push,\ 2)}}
\DoxyCodeLine{00069\ \textcolor{preprocessor}{\#elif\ defined\ (\_\_GNUC\_\_)}}
\DoxyCodeLine{00070\ \textcolor{comment}{//\ Uncomment\ this\ warning\ suppression\ if\ you\ really\ want\ to\ apply\ packing\ to\ a\ virtual\ data}}
\DoxyCodeLine{00071\ \textcolor{comment}{//\ structure,\ but\ note\ that\ there\ is\ no\ guarantee\ of\ cross-\/platform\ compatibility\ for\ such}}
\DoxyCodeLine{00072\ \textcolor{comment}{//\ a\ structure.\ For\ more\ information,\ see\ the\ AAX\_ALIGN\_FILE\_ALG\ macro\ documentation}}
\DoxyCodeLine{00073\ \textcolor{comment}{//\ \ \#ifdef\ \_\_clang\_\_}}
\DoxyCodeLine{00074\ \textcolor{comment}{//\ \ \ \ \ \ \#pragma\ clang\ diagnostic\ push}}
\DoxyCodeLine{00075\ \textcolor{comment}{//\ \ \ \ \ \ \#pragma\ clang\ diagnostic\ ignored\ "{}-\/Wno-\/incompatible-\/ms-\/struct"{}}}
\DoxyCodeLine{00076\ \textcolor{comment}{//\ \ \#endif}}
\DoxyCodeLine{00077\ \textcolor{preprocessor}{\#pragma\ ms\_struct\ on}}
\DoxyCodeLine{00078\ \textcolor{comment}{//\ \ \#ifdef\ \_\_clang\_\_}}
\DoxyCodeLine{00079\ \textcolor{comment}{//\ \ \ \ \ \ \#pragma\ clang\ diagnostic\ pop}}
\DoxyCodeLine{00080\ \textcolor{comment}{//\ \ \#endif}}
\DoxyCodeLine{00081\ \textcolor{preprocessor}{\#pragma\ pack(push,\ 2)}}
\DoxyCodeLine{00082\ \textcolor{preprocessor}{\#elif\ defined\ (\_\_MWERKS\_\_)}}
\DoxyCodeLine{00083\ \textcolor{preprocessor}{\#pragma\ options\ align=mac68k}}
\DoxyCodeLine{00084\ \textcolor{preprocessor}{\#else}}
\DoxyCodeLine{00085\ \textcolor{preprocessor}{\#error\ "{}You\ need\ to\ supply\ a\ pragma\ here\ to\ set\ structure\ alignment\ to\ 2\ bytes"{}}}
\DoxyCodeLine{00086\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00087\ }
\DoxyCodeLine{00088\ \textcolor{comment}{//\ Nesting\ of\ struct\ alignment\ headers\ is\ not\ allowed}}
\DoxyCodeLine{00089\ \textcolor{preprocessor}{\#ifdef\ \_\_AAX\_CUSTOM\_STRUCT\_ALIGN\_IS\_SET\_\_}}
\DoxyCodeLine{00090\ \textcolor{preprocessor}{\#error\ "{}Nested\ AAX\ struct\ alignment\ directives"{}}}
\DoxyCodeLine{00091\ \textcolor{preprocessor}{\#else}}
\DoxyCodeLine{00092\ \textcolor{preprocessor}{\#define\ \_\_AAX\_CUSTOM\_STRUCT\_ALIGN\_IS\_SET\_\_}}
\DoxyCodeLine{00093\ \textcolor{preprocessor}{\#endif}}

\end{DoxyCode}
