PreSoundEngineInclude.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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 before any #include <AK/...> operation, and the attached Post
  22. // operation should be done afterwards.
  23. #if defined(AK_PRESOUNDENGINEINCLUDE_GUARD)
  24. #error PreSoundEngineInclude is not reentrant. Please include "Wwise/PostSoundEngineInclude.h" after including your <AK/...> files
  25. #endif
  26. #define AK_PRESOUNDENGINEINCLUDE_GUARD 1
  27. #include "CoreTypes.h"
  28. #if defined(PLATFORM_MICROSOFT) && PLATFORM_MICROSOFT
  29. #if defined(InterlockedIncrement)
  30. #define AK_KEEP_InterlockedIncrement 1
  31. #endif
  32. #if defined(InterlockedDecrement)
  33. #define AK_KEEP_InterlockedDecrement 1
  34. #endif
  35. #if defined(InterlockedAdd)
  36. #define AK_KEEP_InterlockedAdd 1
  37. #endif
  38. #if defined(InterlockedExchange)
  39. #define AK_KEEP_InterlockedExchange 1
  40. #endif
  41. #if defined(InterlockedExchangeAdd)
  42. #define AK_KEEP_InterlockedExchangeAdd 1
  43. #endif
  44. #if defined(InterlockedCompareExchange)
  45. #define AK_KEEP_InterlockedCompareExchange 1
  46. #endif
  47. #if defined(InterlockedCompareExchangePointer)
  48. #define AK_KEEP_InterlockedCompareExchangePointer 1
  49. #endif
  50. #if defined(InterlockedExchange64)
  51. #define AK_KEEP_InterlockedExchange64 1
  52. #endif
  53. #if defined(InterlockedExchangeAdd64)
  54. #define AK_KEEP_InterlockedExchangeAdd64 1
  55. #endif
  56. #if defined(InterlockedCompareExchange64)
  57. #define AK_KEEP_InterlockedCompareExchange64 1
  58. #endif
  59. #if defined(InterlockedIncrement64)
  60. #define AK_KEEP_InterlockedIncrement64 1
  61. #endif
  62. #if defined(InterlockedDecrement64)
  63. #define AK_KEEP_InterlockedDecrement64 1
  64. #endif
  65. #if defined(InterlockedAnd)
  66. #define AK_KEEP_InterlockedAnd 1
  67. #endif
  68. #if defined(InterlockedOr)
  69. #define AK_KEEP_InterlockedOr 1
  70. #endif
  71. #if defined(InterlockedXor)
  72. #define AK_KEEP_InterlockedXor 1
  73. #endif
  74. #if defined(INT)
  75. #define AK_KEEP_INT 1
  76. #endif
  77. #if defined(UINT)
  78. #define AK_KEEP_UINT 1
  79. #endif
  80. #if defined(DWORD)
  81. #define AK_KEEP_DWORD 1
  82. #endif
  83. #if defined(FLOAT)
  84. #define AK_KEEP_FLOAT 1
  85. #endif
  86. #if defined(TRUE)
  87. #define AK_KEEP_TRUE 1
  88. #endif
  89. #if defined(FALSE)
  90. #define AK_KEEP_FALSE 1
  91. #endif
  92. #include "Microsoft/AllowMicrosoftPlatformTypes.h"
  93. #include "Microsoft/AllowMicrosoftPlatformAtomics.h"
  94. #endif
  95. #ifdef THIRD_PARTY_INCLUDES_START
  96. THIRD_PARTY_INCLUDES_START
  97. #endif
  98. #ifdef PRAGMA_PUSH_PLATFORM_DEFAULT_PACKING
  99. PRAGMA_PUSH_PLATFORM_DEFAULT_PACKING
  100. #endif