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.

166 lines
4.6KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2020 - 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 6
  23. #define JUCE_MINOR_VERSION 1
  24. #define JUCE_BUILDNUMBER 2
  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. //==============================================================================
  33. #include <algorithm>
  34. #include <array>
  35. #include <atomic>
  36. #include <cmath>
  37. #include <condition_variable>
  38. #include <cstddef>
  39. #include <functional>
  40. #include <iomanip>
  41. #include <iostream>
  42. #include <limits>
  43. #include <list>
  44. #include <map>
  45. #include <unordered_map>
  46. #include <memory>
  47. #include <mutex>
  48. #include <numeric>
  49. #include <queue>
  50. #include <sstream>
  51. #include <typeindex>
  52. #include <unordered_set>
  53. #include <vector>
  54. //==============================================================================
  55. #include "juce_CompilerSupport.h"
  56. #include "juce_CompilerWarnings.h"
  57. #include "juce_PlatformDefs.h"
  58. //==============================================================================
  59. // Now we'll include some common OS headers..
  60. JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4514 4245 4100)
  61. #if JUCE_MSVC
  62. #include <intrin.h>
  63. #endif
  64. #if JUCE_MAC || JUCE_IOS
  65. #include <libkern/OSAtomic.h>
  66. #include <xlocale.h>
  67. #include <signal.h>
  68. #endif
  69. #if JUCE_LINUX || JUCE_BSD
  70. #include <cstring>
  71. #include <signal.h>
  72. #if __INTEL_COMPILER
  73. #if __ia64__
  74. #include <ia64intrin.h>
  75. #else
  76. #include <ia32intrin.h>
  77. #endif
  78. #endif
  79. #endif
  80. #if JUCE_MSVC && JUCE_DEBUG
  81. #include <crtdbg.h>
  82. #endif
  83. JUCE_END_IGNORE_WARNINGS_MSVC
  84. #if JUCE_MINGW
  85. #include <cstring>
  86. #include <sys/types.h>
  87. #endif
  88. #if JUCE_ANDROID
  89. #include <cstring>
  90. #include <byteswap.h>
  91. #endif
  92. // undef symbols that are sometimes set by misguided 3rd-party headers..
  93. #undef TYPE_BOOL
  94. #undef max
  95. #undef min
  96. #undef major
  97. #undef minor
  98. #undef KeyPress
  99. //==============================================================================
  100. // DLL building settings on Windows
  101. #if JUCE_MSVC
  102. #ifdef JUCE_DLL_BUILD
  103. #define JUCE_API __declspec (dllexport)
  104. #pragma warning (disable: 4251)
  105. #elif defined (JUCE_DLL)
  106. #define JUCE_API __declspec (dllimport)
  107. #pragma warning (disable: 4251)
  108. #endif
  109. #ifdef __INTEL_COMPILER
  110. #pragma warning (disable: 1125) // (virtual override warning)
  111. #endif
  112. #elif defined (JUCE_DLL) || defined (JUCE_DLL_BUILD)
  113. #define JUCE_API __attribute__ ((visibility("default")))
  114. #endif
  115. //==============================================================================
  116. #ifndef JUCE_API
  117. #define JUCE_API /**< This macro is added to all JUCE public class declarations. */
  118. #endif
  119. #if JUCE_MSVC && JUCE_DLL_BUILD
  120. #define JUCE_PUBLIC_IN_DLL_BUILD(declaration) public: declaration; private:
  121. #else
  122. #define JUCE_PUBLIC_IN_DLL_BUILD(declaration) declaration;
  123. #endif
  124. /** This macro is added to all JUCE public function declarations. */
  125. #define JUCE_PUBLIC_FUNCTION JUCE_API JUCE_CALLTYPE
  126. #if (! defined (JUCE_CATCH_DEPRECATED_CODE_MISUSE)) && JUCE_DEBUG && ! DOXYGEN
  127. /** This turns on some non-essential bits of code that should prevent old code from compiling
  128. in cases where method signatures have changed, etc.
  129. */
  130. #define JUCE_CATCH_DEPRECATED_CODE_MISUSE 1
  131. #endif
  132. #ifndef DOXYGEN
  133. #define JUCE_NAMESPACE juce // This old macro is deprecated: you should just use the juce namespace directly.
  134. #endif