The JUCE cross-platform C++ framework, with DISTRHO/KXStudio specific changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

169 lines
4.7KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2022 - Raw Material Software Limited
  5. JUCE is an open source library subject to commercial or open-source
  6. licensing.
  7. The code included in this file is provided under the terms of the ISC license
  8. http://www.isc.org/downloads/software-support-policy/isc-license. Permission
  9. To use, copy, modify, and/or distribute this software for any purpose with or
  10. without fee is hereby granted provided that the above copyright notice and
  11. this permission notice appear in all copies.
  12. JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
  13. EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
  14. DISCLAIMED.
  15. ==============================================================================
  16. */
  17. #pragma once
  18. //==============================================================================
  19. /** Current JUCE version number.
  20. See also SystemStats::getJUCEVersion() for a string version.
  21. */
  22. #define JUCE_MAJOR_VERSION 7
  23. #define JUCE_MINOR_VERSION 0
  24. #define JUCE_BUILDNUMBER 5
  25. /** Current JUCE version number.
  26. Bits 16 to 32 = major version.
  27. Bits 8 to 16 = minor version.
  28. Bits 0 to 8 = point release.
  29. See also SystemStats::getJUCEVersion() for a string version.
  30. */
  31. #define JUCE_VERSION ((JUCE_MAJOR_VERSION << 16) + (JUCE_MINOR_VERSION << 8) + JUCE_BUILDNUMBER)
  32. #if ! DOXYGEN
  33. #define JUCE_VERSION_ID \
  34. [[maybe_unused]] volatile auto juceVersionId = "juce_version_" JUCE_STRINGIFY(JUCE_MAJOR_VERSION) "_" JUCE_STRINGIFY(JUCE_MINOR_VERSION) "_" JUCE_STRINGIFY(JUCE_BUILDNUMBER);
  35. #endif
  36. //==============================================================================
  37. #include <algorithm>
  38. #include <array>
  39. #include <atomic>
  40. #include <cmath>
  41. #include <condition_variable>
  42. #include <cstddef>
  43. #include <functional>
  44. #include <future>
  45. #include <iomanip>
  46. #include <iostream>
  47. #include <limits>
  48. #include <list>
  49. #include <map>
  50. #include <memory>
  51. #include <mutex>
  52. #include <numeric>
  53. #include <optional>
  54. #include <queue>
  55. #include <set>
  56. #include <sstream>
  57. #include <thread>
  58. #include <typeindex>
  59. #include <unordered_map>
  60. #include <unordered_set>
  61. #include <utility>
  62. #include <variant>
  63. #include <vector>
  64. //==============================================================================
  65. #include "juce_CompilerSupport.h"
  66. #include "juce_CompilerWarnings.h"
  67. #include "juce_PlatformDefs.h"
  68. //==============================================================================
  69. // Now we'll include some common OS headers..
  70. JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4514 4245 4100)
  71. #if JUCE_MSVC
  72. #include <intrin.h>
  73. #endif
  74. #if JUCE_MAC || JUCE_IOS
  75. #include <libkern/OSAtomic.h>
  76. #include <xlocale.h>
  77. #include <signal.h>
  78. #endif
  79. #if JUCE_LINUX || JUCE_BSD
  80. #include <cstring>
  81. #include <signal.h>
  82. #if __INTEL_COMPILER
  83. #if __ia64__
  84. #include <ia64intrin.h>
  85. #else
  86. #include <ia32intrin.h>
  87. #endif
  88. #endif
  89. #endif
  90. #if JUCE_MSVC && JUCE_DEBUG
  91. #include <crtdbg.h>
  92. #endif
  93. JUCE_END_IGNORE_WARNINGS_MSVC
  94. #if JUCE_MINGW
  95. #include <cstring>
  96. #include <sys/types.h>
  97. #endif
  98. #if JUCE_ANDROID
  99. #include <cstring>
  100. #include <byteswap.h>
  101. #endif
  102. // undef symbols that are sometimes set by misguided 3rd-party headers..
  103. #undef TYPE_BOOL
  104. #undef max
  105. #undef min
  106. #undef major
  107. #undef minor
  108. #undef KeyPress
  109. //==============================================================================
  110. // DLL building settings on Windows
  111. #if JUCE_MSVC
  112. #ifdef JUCE_DLL_BUILD
  113. #define JUCE_API __declspec (dllexport)
  114. #pragma warning (disable: 4251)
  115. #elif defined (JUCE_DLL)
  116. #define JUCE_API __declspec (dllimport)
  117. #pragma warning (disable: 4251)
  118. #endif
  119. #ifdef __INTEL_COMPILER
  120. #pragma warning (disable: 1125) // (virtual override warning)
  121. #endif
  122. #elif defined (JUCE_DLL) || defined (JUCE_DLL_BUILD)
  123. #define JUCE_API __attribute__ ((visibility("default")))
  124. #endif
  125. //==============================================================================
  126. #ifndef JUCE_API
  127. #define JUCE_API /**< This macro is added to all JUCE public class declarations. */
  128. #endif
  129. #if JUCE_MSVC && JUCE_DLL_BUILD
  130. #define JUCE_PUBLIC_IN_DLL_BUILD(declaration) public: declaration; private:
  131. #else
  132. #define JUCE_PUBLIC_IN_DLL_BUILD(declaration) declaration;
  133. #endif
  134. /** This macro is added to all JUCE public function declarations. */
  135. #define JUCE_PUBLIC_FUNCTION JUCE_API JUCE_CALLTYPE
  136. #ifndef DOXYGEN
  137. #define JUCE_NAMESPACE juce // This old macro is deprecated: you should just use the juce namespace directly.
  138. #endif