Back to index

lightning-sunbird  0.9+nobinonly
PPHeaders.pch.h
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
00002  *
00003  * ***** BEGIN LICENSE BLOCK *****
00004  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00005  *
00006  * The contents of this file are subject to the Mozilla Public License Version
00007  * 1.1 (the "License"); you may not use this file except in compliance with
00008  * the License. You may obtain a copy of the License at
00009  * http://www.mozilla.org/MPL/
00010  *
00011  * Software distributed under the License is distributed on an "AS IS" basis,
00012  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00013  * for the specific language governing rights and limitations under the
00014  * License.
00015  *
00016  * The Original Code is the Mozilla browser.
00017  *
00018  * The Initial Developer of the Original Code is
00019  * Netscape Communications, Inc.
00020  * Portions created by the Initial Developer are Copyright (C) 1999
00021  * the Initial Developer. All Rights Reserved.
00022  *
00023  * Contributor(s):
00024  *   Conrad Carlen <ccarlen@netscape.com>
00025  *
00026  * Alternatively, the contents of this file may be used under the terms of
00027  * either of the GNU General Public License Version 2 or later (the "GPL"),
00028  * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00029  * in which case the provisions of the GPL or the LGPL are applicable instead
00030  * of those above. If you wish to allow use of your version of this file only
00031  * under the terms of either the GPL or the LGPL, and not to allow others to
00032  * use your version of this file under the terms of the MPL, indicate your
00033  * decision by deleting the provisions above and replace them with the notice
00034  * and other provisions required by the GPL or the LGPL. If you do not delete
00035  * the provisions above, a recipient may use your version of this file under
00036  * the terms of any one of the MPL, the GPL or the LGPL.
00037  *
00038  * ***** END LICENSE BLOCK ***** */
00039 
00040 #ifndef __PPHEADERS_PCH_H__
00041 #define __PPHEADERS_PCH_H__
00042 
00043 //--------------------------------------------------------------------------------
00044 //
00045 //     Source for precompiled header for mozilla PowerPlant projects
00046 //
00047 //--------------------------------------------------------------------------------
00048 
00049 #if __option(precompile)
00050        #if __MWERKS__ >= 0x2100
00051               // slightly larger but much faster generation of pch files
00052               #pragma faster_pch_gen on
00053        #endif
00054 
00055         // include mozilla prefix file
00056               #if wantDebugging
00057                   #include "MacPrefix_debug.h"
00058               #else
00059                   #include "MacPrefix.h"
00060               #endif
00061         
00062         // PowerPlant definitions
00063               #define PP_Uses_PowerPlant_Namespace             0
00064               #define PP_Suppress_Notes_22                1
00065               #define PP_Uses_Aqua_MenuBar                1
00066                      
00067         #if !defined(TARGET_CARBON) || !TARGET_CARBON
00068             #define ACCESSOR_CALLS_ARE_FUNCTIONS 1             
00069         #endif
00070 
00071               #if TARGET_CARBON
00072                   #define PP_Target_Carbon 1
00073             #define PP_StdDialogs_Option  PP_StdDialogs_NavServicesOnly             
00074               #else
00075             #define PP_StdDialogs_Option  PP_StdDialogs_Conditional
00076               #endif
00077               
00078               
00079         
00080               // include powerplant headers
00081               #if wantDebugging
00082                      #include <PP_DebugHeaders.cp>
00083               #else
00084                      #include <PP_ClassHeaders.cp>
00085               #endif
00086 
00087               //     Support for automatically naming the precompiled header file ...
00088               #if __POWERPC__
00089                      #if wantDebugging
00090                             #pragma precompile_target "PPHeadersDebug_pch"
00091                      #else
00092                             #pragma precompile_target "PPHeaders_pch"
00093                      #endif
00094               #else
00095                      #error "target currently unsupported"     
00096               #endif
00097 
00098 #else
00099 
00100               // Load the precompiled header file
00101               #if __POWERPC__
00102                      #if wantDebugging
00103                             #include "PPHeadersDebug_pch"
00104                      #else
00105                             #include "PPHeaders_pch"           
00106                      #endif
00107               #else
00108                      #error "target currently unsupported"     
00109               #endif
00110 
00111 
00112 #endif
00113 
00114 #endif // __PPHEADERS_PCH_H__