2 ==============================================================================
4 This file is part of the JUCE library - "Jules' Utility Class Extensions"
5 Copyright 2004-11 by Raw Material Software Ltd.
7 ------------------------------------------------------------------------------
9 JUCE can be redistributed and/or modified under the terms of the GNU General
10 Public License (Version 2), as published by the Free Software Foundation.
11 A copy of the license is included in the JUCE distribution, or can be found
12 online at www.gnu.org/licenses.
14 JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
15 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
16 A PARTICULAR PURPOSE. See the GNU General Public License for more details.
18 ------------------------------------------------------------------------------
20 To release a closed-source product which uses JUCE, commercial licenses are
21 available: visit www.rawmaterialsoftware.com/juce for more information.
23 ==============================================================================
26 #ifndef __JUCE_DEFINEMACROS_JUCEHEADER__
27 #define __JUCE_DEFINEMACROS_JUCEHEADER__
29 //==============================================================================
31 This header file re-defines macros that were omitted if the
32 JUCE_DONT_DEFINE_MACROS flag was set before including juce.h.
34 For a better explanation, see the comments at the top of the
35 juce_WithoutMacros.h file.
38 //==============================================================================
39 #ifndef __JUCE_WITHOUTMACROS_JUCEHEADER__
40 #error "This file is only supposed to be included after juce_WithoutMacros.h!"
43 #if (! DONT_SET_USING_JUCE_NAMESPACE) && defined (JUCE_NAMESPACE)
45 // on the Mac, these symbols are defined in the Mac libraries, so
46 // these macros make it easier to reference them without writing out
47 // the namespace every time.
49 #define Component JUCE_NAMESPACE::Component
50 #define MemoryBlock JUCE_NAMESPACE::MemoryBlock
51 #define Point JUCE_NAMESPACE::Point
52 #define Button JUCE_NAMESPACE::Button
55 // "Rectangle" is defined in some of the newer windows header files..
57 #define Rectangle JUCE_NAMESPACE::Rectangle
61 #define T(stringLiteral) JUCE_T(stringLiteral)
63 #endif // __JUCE_DEFINEMACROS_JUCEHEADER__