PostSoundEngineInclude.h 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. /*******************************************************************************
  2. The content of this file includes portions of the proprietary AUDIOKINETIC Wwise
  3. Technology released in source code form as part of the game integration package.
  4. The content of this file may not be used without valid licenses to the
  5. AUDIOKINETIC Wwise Technology.
  6. Note that the use of the game engine is subject to the Unreal(R) Engine End User
  7. License Agreement at https://www.unrealengine.com/en-US/eula/unreal
  8. License Usage
  9. Licensees holding valid licenses to the AUDIOKINETIC Wwise Technology may use
  10. this file in accordance with the end user license agreement provided with the
  11. software or, alternatively, in accordance with the terms contained
  12. in a written agreement between you and Audiokinetic Inc.
  13. Copyright (c) 2023 Audiokinetic Inc.
  14. *******************************************************************************/
  15. // Allows usage of the Atomics and Windows macro-based types.
  16. //
  17. // In some circumstances, under some platforms, the definitions for Windows macros are
  18. // already done. This code makes sure we safeguard what is already set up, before including
  19. // the official Allow header.
  20. //
  21. // This code should be used after any #include <AK/...> operation, and the attached Pre
  22. // operation should be done prior to the includes.
  23. #if !defined(AK_PRESOUNDENGINEINCLUDE_GUARD)
  24. #error PostSoundEngineInclude is not reentrant. Please include "Wwise/PreSoundEngineInclude.h" before including your <AK/...> files
  25. #endif
  26. #undef AK_PRESOUNDENGINEINCLUDE_GUARD
  27. #ifdef PRAGMA_POP_PLATFORM_DEFAULT_PACKING
  28. PRAGMA_POP_PLATFORM_DEFAULT_PACKING
  29. #endif
  30. #ifdef THIRD_PARTY_INCLUDES_END
  31. THIRD_PARTY_INCLUDES_END
  32. #endif
  33. #if defined(PLATFORM_MICROSOFT) && PLATFORM_MICROSOFT
  34. #include "Microsoft/HideMicrosoftPlatformTypes.h"
  35. #include "Microsoft/HideMicrosoftPlatformAtomics.h"
  36. #if defined(AK_KEEP_InterlockedIncrement)
  37. #undef InterlockedIncrement
  38. #define InterlockedIncrement _InterlockedIncrement
  39. #undef AK_KEEP_InterlockedIncrement
  40. #endif
  41. #if defined(AK_KEEP_InterlockedDecrement)
  42. #undef InterlockedDecrement
  43. #define InterlockedDecrement _InterlockedDecrement
  44. #undef AK_KEEP_InterlockedDecrement
  45. #endif
  46. #if defined(AK_KEEP_InterlockedAdd)
  47. #undef InterlockedAdd
  48. #define InterlockedAdd _InterlockedAdd
  49. #undef AK_KEEP_InterlockedAdd
  50. #endif
  51. #if defined(AK_KEEP_InterlockedExchange)
  52. #undef InterlockedExchange
  53. #define InterlockedExchange _InterlockedExchange
  54. #undef AK_KEEP_InterlockedExchange
  55. #endif
  56. #if defined(AK_KEEP_InterlockedExchangeAdd)
  57. #undef InterlockedExchangeAdd
  58. #define InterlockedExchangeAdd _InterlockedExchangeAdd
  59. #undef AK_KEEP_InterlockedExchangeAdd
  60. #endif
  61. #if defined(AK_KEEP_InterlockedCompareExchange)
  62. #undef InterlockedCompareExchange
  63. #define InterlockedCompareExchange _InterlockedCompareExchange
  64. #undef AK_KEEP_InterlockedCompareExchange
  65. #endif
  66. #if defined(AK_KEEP_InterlockedCompareExchangePointer)
  67. #undef InterlockedCompareExchangePointer
  68. #if PLATFORM_64BITS
  69. #define InterlockedCompareExchangePointer _InterlockedCompareExchangePointer
  70. #else
  71. #define InterlockedCompareExchangePointer __InlineInterlockedCompareExchangePointer
  72. #endif
  73. #undef AK_KEEP_InterlockedCompareExchangePointer
  74. #endif
  75. #if defined(AK_KEEP_InterlockedExchange64)
  76. #undef InterlockedExchange64
  77. #define InterlockedExchange64 _InterlockedExchange64
  78. #undef AK_KEEP_InterlockedExchange64
  79. #endif
  80. #if defined(AK_KEEP_InterlockedExchangeAdd64)
  81. #undef InterlockedExchangeAdd64
  82. #define InterlockedExchangeAdd64 _InterlockedExchangeAdd64
  83. #undef AK_KEEP_InterlockedExchangeAdd64
  84. #endif
  85. #if defined(AK_KEEP_InterlockedCompareExchange64)
  86. #undef InterlockedCompareExchange64
  87. #define InterlockedCompareExchange64 _InterlockedCompareExchange64
  88. #undef AK_KEEP_InterlockedCompareExchange64
  89. #endif
  90. #if defined(AK_KEEP_InterlockedIncrement64)
  91. #undef InterlockedIncrement64
  92. #define InterlockedIncrement64 _InterlockedIncrement64
  93. #undef AK_KEEP_InterlockedIncrement64
  94. #endif
  95. #if defined(AK_KEEP_InterlockedDecrement64)
  96. #undef InterlockedDecrement64
  97. #define InterlockedDecrement64 _InterlockedDecrement64
  98. #undef AK_KEEP_InterlockedDecrement64
  99. #endif
  100. #if defined(AK_KEEP_InterlockedAnd)
  101. #undef InterlockedAnd
  102. #define InterlockedAnd _InterlockedAnd
  103. #undef AK_KEEP_InterlockedAnd
  104. #endif
  105. #if defined(AK_KEEP_InterlockedOr)
  106. #undef InterlockedOr
  107. #define InterlockedOr _InterlockedOr
  108. #undef AK_KEEP_InterlockedOr
  109. #endif
  110. #if defined(AK_KEEP_InterlockedXor)
  111. #undef InterlockedXor
  112. #define InterlockedXor _InterlockedXor
  113. #undef AK_KEEP_InterlockedXor
  114. #endif
  115. #if defined(AK_KEEP_INT)
  116. #undef INT
  117. #define INT ::INT
  118. #undef AK_KEEP_INT
  119. #endif
  120. #if defined(AK_KEEP_UINT)
  121. #undef UINT
  122. #define UINT ::UINT
  123. #undef AK_KEEP_UINT
  124. #endif
  125. #if defined(AK_KEEP_DWORD)
  126. #undef DWORD
  127. #define DWORD ::DWORD
  128. #undef AK_KEEP_DWORD
  129. #endif
  130. #if defined(AK_KEEP_FLOAT)
  131. #undef FLOAT
  132. #define FLOAT ::FLOAT
  133. #undef AK_KEEP_FLOAT
  134. #endif
  135. #if defined(AK_KEEP_TRUE)
  136. #undef TRUE
  137. #define TRUE 1
  138. #undef AK_KEEP_TRUE
  139. #endif
  140. #if defined(AK_KEEP_FALSE)
  141. #undef FALSE
  142. #define FALSE 0
  143. #undef AK_KEEP_FALSE
  144. #endif
  145. #endif