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.

161 lines
4.4KB

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