mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-16 00:34:19 +00:00
156 lines
4.7 KiB
C++
156 lines
4.7 KiB
C++
/*
|
|
==============================================================================
|
|
|
|
This file is part of the JUCE library - "Jules' Utility Class Extensions"
|
|
Copyright 2004-9 by Raw Material Software Ltd.
|
|
|
|
------------------------------------------------------------------------------
|
|
|
|
JUCE can be redistributed and/or modified under the terms of the GNU General
|
|
Public License (Version 2), as published by the Free Software Foundation.
|
|
A copy of the license is included in the JUCE distribution, or can be found
|
|
online at www.gnu.org/licenses.
|
|
|
|
JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|
|
|
------------------------------------------------------------------------------
|
|
|
|
To release a closed-source product which uses JUCE, commercial licenses are
|
|
available: visit www.rawmaterialsoftware.com/juce for more information.
|
|
|
|
==============================================================================
|
|
*/
|
|
|
|
#ifndef __JUCE_STANDARDHEADER_JUCEHEADER__
|
|
#define __JUCE_STANDARDHEADER_JUCEHEADER__
|
|
|
|
//==============================================================================
|
|
/** Current Juce version number.
|
|
|
|
See also SystemStats::getJUCEVersion() for a string version.
|
|
*/
|
|
#define JUCE_MAJOR_VERSION 1
|
|
#define JUCE_MINOR_VERSION 51
|
|
#define JUCE_BUILDNUMBER 7
|
|
|
|
/** Current Juce version number.
|
|
|
|
Bits 16 to 32 = major version.
|
|
Bits 8 to 16 = minor version.
|
|
Bits 0 to 8 = point release (not currently used).
|
|
|
|
See also SystemStats::getJUCEVersion() for a string version.
|
|
*/
|
|
#define JUCE_VERSION ((JUCE_MAJOR_VERSION << 16) + (JUCE_MINOR_VERSION << 8) + JUCE_BUILDNUMBER)
|
|
|
|
|
|
//==============================================================================
|
|
#include "juce_TargetPlatform.h" // (sets up the various JUCE_WINDOWS, JUCE_MAC, etc flags)
|
|
|
|
#include "../../juce_Config.h"
|
|
|
|
//==============================================================================
|
|
#ifdef JUCE_NAMESPACE
|
|
#define BEGIN_JUCE_NAMESPACE namespace JUCE_NAMESPACE {
|
|
#define END_JUCE_NAMESPACE }
|
|
#else
|
|
#define BEGIN_JUCE_NAMESPACE
|
|
#define END_JUCE_NAMESPACE
|
|
#endif
|
|
|
|
//==============================================================================
|
|
#include "juce_PlatformDefs.h"
|
|
|
|
// Now we'll include any OS headers we need.. (at this point we are outside the Juce namespace).
|
|
#if JUCE_MSVC
|
|
#if (defined(_MSC_VER) && (_MSC_VER <= 1200))
|
|
#pragma warning (disable: 4284) // (spurious VC6 warning)
|
|
#endif
|
|
|
|
#pragma warning (push)
|
|
#pragma warning (disable: 4514 4245 4100)
|
|
#endif
|
|
|
|
#include <cstdlib>
|
|
#include <cstdarg>
|
|
#include <climits>
|
|
#include <limits>
|
|
#include <cmath>
|
|
#include <cwchar>
|
|
#include <stdexcept>
|
|
#include <typeinfo>
|
|
#include <cstring>
|
|
#include <cstdio>
|
|
#include <iostream>
|
|
|
|
#if JUCE_USE_INTRINSICS
|
|
#include <intrin.h>
|
|
#endif
|
|
|
|
#if JUCE_MAC || JUCE_IPHONE
|
|
#include <libkern/OSAtomic.h>
|
|
#endif
|
|
|
|
#if JUCE_LINUX
|
|
#include <signal.h>
|
|
#endif
|
|
|
|
#if JUCE_MSVC && JUCE_DEBUG
|
|
#include <crtdbg.h>
|
|
#endif
|
|
|
|
#if JUCE_MSVC
|
|
#include <malloc.h>
|
|
#pragma warning (pop)
|
|
|
|
#if ! JUCE_PUBLIC_INCLUDES
|
|
#pragma warning (4: 4511 4512 4100) // (enable some warnings that are turned off in VC8)
|
|
#endif
|
|
#endif
|
|
|
|
//==============================================================================
|
|
// DLL building settings on Win32
|
|
#if JUCE_MSVC
|
|
#ifdef JUCE_DLL_BUILD
|
|
#define JUCE_API __declspec (dllexport)
|
|
#pragma warning (disable: 4251)
|
|
#elif defined (JUCE_DLL)
|
|
#define JUCE_API __declspec (dllimport)
|
|
#pragma warning (disable: 4251)
|
|
#endif
|
|
#elif defined (__GNUC__) && ((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
|
|
#ifdef JUCE_DLL_BUILD
|
|
#define JUCE_API __attribute__ ((visibility("default")))
|
|
#endif
|
|
#endif
|
|
|
|
#ifndef JUCE_API
|
|
/** This macro is added to all juce public class declarations. */
|
|
#define JUCE_API
|
|
#endif
|
|
|
|
/** This macro is added to all juce public function declarations. */
|
|
#define JUCE_PUBLIC_FUNCTION JUCE_API JUCE_CALLTYPE
|
|
|
|
|
|
//==============================================================================
|
|
// Now include some basics that are needed by most of the Juce classes...
|
|
BEGIN_JUCE_NAMESPACE
|
|
|
|
extern bool JUCE_PUBLIC_FUNCTION juce_isRunningUnderDebugger();
|
|
|
|
#if JUCE_LOG_ASSERTIONS
|
|
extern void JUCE_API juce_LogAssertion (const char* filename, const int lineNum) throw();
|
|
#endif
|
|
|
|
#include "juce_Memory.h"
|
|
#include "juce_MathsFunctions.h"
|
|
#include "juce_ByteOrder.h"
|
|
#include "juce_Logger.h"
|
|
|
|
END_JUCE_NAMESPACE
|
|
|
|
|
|
#endif // __JUCE_STANDARDHEADER_JUCEHEADER__
|