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.

160 lines
4.9KB

  1. /*
  2. ==============================================================================
  3. This file is part of the juce_core module of the JUCE library.
  4. Copyright (c) 2013 - Raw Material Software Ltd.
  5. Permission to use, copy, modify, and/or distribute this software for any purpose with
  6. or without fee is hereby granted, provided that the above copyright notice and this
  7. permission notice appear in all copies.
  8. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD
  9. TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN
  10. NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  11. DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
  12. IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
  13. CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  14. ------------------------------------------------------------------------------
  15. NOTE! This permissive ISC license applies ONLY to files within the juce_core module!
  16. All other JUCE modules are covered by a dual GPL/commercial license, so if you are
  17. using any other modules, be sure to check that you also comply with their license.
  18. For more details, visit www.juce.com
  19. ==============================================================================
  20. */
  21. #ifndef JUCE_STANDARDHEADER_H_INCLUDED
  22. #define JUCE_STANDARDHEADER_H_INCLUDED
  23. //==============================================================================
  24. /** Current JUCE version number.
  25. See also SystemStats::getJUCEVersion() for a string version.
  26. */
  27. #define JUCE_MAJOR_VERSION 3
  28. #define JUCE_MINOR_VERSION 0
  29. #define JUCE_BUILDNUMBER 8
  30. /** Current Juce version number.
  31. Bits 16 to 32 = major version.
  32. Bits 8 to 16 = minor version.
  33. Bits 0 to 8 = point release.
  34. See also SystemStats::getJUCEVersion() for a string version.
  35. */
  36. #define JUCE_VERSION ((JUCE_MAJOR_VERSION << 16) + (JUCE_MINOR_VERSION << 8) + JUCE_BUILDNUMBER)
  37. //==============================================================================
  38. #include "juce_PlatformDefs.h"
  39. #include "juce_CompilerSupport.h"
  40. //==============================================================================
  41. // Now we'll include some common OS headers..
  42. #if JUCE_MSVC
  43. #pragma warning (push)
  44. #pragma warning (disable: 4514 4245 4100)
  45. #endif
  46. #include <cstdlib>
  47. #include <cstdarg>
  48. #include <climits>
  49. #include <limits>
  50. #include <cmath>
  51. #include <cwchar>
  52. #include <stdexcept>
  53. #include <typeinfo>
  54. #include <cstring>
  55. #include <cstdio>
  56. #include <iostream>
  57. #include <vector>
  58. #include <algorithm>
  59. #include <functional>
  60. #if JUCE_USE_MSVC_INTRINSICS
  61. #include <intrin.h>
  62. #endif
  63. #if JUCE_MAC || JUCE_IOS
  64. #include <libkern/OSAtomic.h>
  65. #endif
  66. #if JUCE_LINUX
  67. #include <signal.h>
  68. #if __INTEL_COMPILER
  69. #if __ia64__
  70. #include <ia64intrin.h>
  71. #else
  72. #include <ia32intrin.h>
  73. #endif
  74. #endif
  75. #endif
  76. #if JUCE_MSVC && JUCE_DEBUG
  77. #include <crtdbg.h>
  78. #endif
  79. #if JUCE_MSVC
  80. #pragma warning (pop)
  81. #endif
  82. #if JUCE_ANDROID
  83. #include <sys/atomics.h>
  84. #include <byteswap.h>
  85. #endif
  86. // undef symbols that are sometimes set by misguided 3rd-party headers..
  87. #undef check
  88. #undef TYPE_BOOL
  89. #undef max
  90. #undef min
  91. //==============================================================================
  92. // DLL building settings on Windows
  93. #if JUCE_MSVC
  94. #ifdef JUCE_DLL_BUILD
  95. #define JUCE_API __declspec (dllexport)
  96. #pragma warning (disable: 4251)
  97. #elif defined (JUCE_DLL)
  98. #define JUCE_API __declspec (dllimport)
  99. #pragma warning (disable: 4251)
  100. #endif
  101. #ifdef __INTEL_COMPILER
  102. #pragma warning (disable: 1125) // (virtual override warning)
  103. #endif
  104. #elif defined (JUCE_DLL) || defined (JUCE_DLL_BUILD)
  105. #define JUCE_API __attribute__ ((visibility("default")))
  106. #endif
  107. //==============================================================================
  108. #ifndef JUCE_API
  109. #define JUCE_API /**< This macro is added to all juce public class declarations. */
  110. #endif
  111. #if JUCE_MSVC && JUCE_DLL_BUILD
  112. #define JUCE_PUBLIC_IN_DLL_BUILD(declaration) public: declaration; private:
  113. #else
  114. #define JUCE_PUBLIC_IN_DLL_BUILD(declaration) declaration;
  115. #endif
  116. /** This macro is added to all juce public function declarations. */
  117. #define JUCE_PUBLIC_FUNCTION JUCE_API JUCE_CALLTYPE
  118. #if (! defined (JUCE_CATCH_DEPRECATED_CODE_MISUSE)) && JUCE_DEBUG && ! DOXYGEN
  119. /** This turns on some non-essential bits of code that should prevent old code from compiling
  120. in cases where method signatures have changed, etc.
  121. */
  122. #define JUCE_CATCH_DEPRECATED_CODE_MISUSE 1
  123. #endif
  124. #ifndef DOXYGEN
  125. #define JUCE_NAMESPACE juce // This old macro is deprecated: you should just use the juce namespace directly.
  126. #endif
  127. #endif // JUCE_STANDARDHEADER_H_INCLUDED