xma2defs.h: macro hack for mingw's lack of __out etc
directx/xma2defs.h:406:5: error: '__out' has not been declared note that we have to undef the macros on leaving the header, as these names are also used for some arguments in stdlibc++ headers.
This commit is contained in:
parent
ee6d8aa125
commit
e8f1e60243
|
@ -10,6 +10,11 @@
|
|||
#ifndef __XMA2DEFS_INCLUDED__
|
||||
#define __XMA2DEFS_INCLUDED__
|
||||
|
||||
#ifdef __MINGW32__
|
||||
#define __out
|
||||
#define __in
|
||||
#endif
|
||||
|
||||
#include <sal.h> // Markers for documenting API semantics
|
||||
#include <winerror.h> // For S_OK, E_FAIL
|
||||
#include <audiodefs.h> // Basic data types and constants for audio work
|
||||
|
@ -714,5 +719,10 @@ __inline HRESULT LocalizeXma2Format(__inout XMA2WAVEFORMATEX* pXma2Format)
|
|||
#undef XMASWAP4BYTES
|
||||
}
|
||||
|
||||
#ifdef __MINGW32__
|
||||
#undef __out
|
||||
#undef __in
|
||||
#endif
|
||||
|
||||
|
||||
#endif // #ifndef __XMA2DEFS_INCLUDED__
|
||||
|
|
Loading…
Reference in New Issue