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.

170 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 7
  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 <string_view>
  58. #include <thread>
  59. #include <typeindex>
  60. #include <unordered_map>
  61. #include <unordered_set>
  62. #include <utility>
  63. #include <variant>
  64. #include <vector>
  65. //==============================================================================
  66. #include "juce_CompilerSupport.h"
  67. #include "juce_CompilerWarnings.h"
  68. #include "juce_PlatformDefs.h"
  69. //==============================================================================
  70. // Now we'll include some common OS headers..
  71. JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4514 4245 4100)
  72. #if JUCE_MSVC
  73. #include <intrin.h>
  74. #endif
  75. #if JUCE_MAC || JUCE_IOS
  76. #include <libkern/OSAtomic.h>
  77. #include <xlocale.h>
  78. #include <signal.h>
  79. #endif
  80. #if JUCE_LINUX || JUCE_BSD
  81. #include <cstring>
  82. #include <signal.h>
  83. #if __INTEL_COMPILER
  84. #if __ia64__
  85. #include <ia64intrin.h>
  86. #else
  87. #include <ia32intrin.h>
  88. #endif
  89. #endif
  90. #endif
  91. #if JUCE_MSVC && JUCE_DEBUG
  92. #include <crtdbg.h>
  93. #endif
  94. JUCE_END_IGNORE_WARNINGS_MSVC
  95. #if JUCE_MINGW
  96. #include <cstring>
  97. #include <sys/types.h>
  98. #endif
  99. #if JUCE_ANDROID
  100. #include <cstring>
  101. #include <byteswap.h>
  102. #endif
  103. // undef symbols that are sometimes set by misguided 3rd-party headers..
  104. #undef TYPE_BOOL
  105. #undef max
  106. #undef min
  107. #undef major
  108. #undef minor
  109. #undef KeyPress
  110. //==============================================================================
  111. // DLL building settings on Windows
  112. #if JUCE_MSVC
  113. #ifdef JUCE_DLL_BUILD
  114. #define JUCE_API __declspec (dllexport)
  115. #pragma warning (disable: 4251)
  116. #elif defined (JUCE_DLL)
  117. #define JUCE_API __declspec (dllimport)
  118. #pragma warning (disable: 4251)
  119. #endif
  120. #ifdef __INTEL_COMPILER
  121. #pragma warning (disable: 1125) // (virtual override warning)
  122. #endif
  123. #elif defined (JUCE_DLL) || defined (JUCE_DLL_BUILD)
  124. #define JUCE_API __attribute__ ((visibility("default")))
  125. #endif
  126. //==============================================================================
  127. #ifndef JUCE_API
  128. #define JUCE_API /**< This macro is added to all JUCE public class declarations. */
  129. #endif
  130. #if JUCE_MSVC && JUCE_DLL_BUILD
  131. #define JUCE_PUBLIC_IN_DLL_BUILD(declaration) public: declaration; private:
  132. #else
  133. #define JUCE_PUBLIC_IN_DLL_BUILD(declaration) declaration;
  134. #endif
  135. /** This macro is added to all JUCE public function declarations. */
  136. #define JUCE_PUBLIC_FUNCTION JUCE_API JUCE_CALLTYPE
  137. #ifndef DOXYGEN
  138. #define JUCE_NAMESPACE juce // This old macro is deprecated: you should just use the juce namespace directly.
  139. #endif