1// File: "TclAS_CarbonMachO.pch" 2// Created: 2003-09-22 10:47:15 3// Last modification: 2003-09-22 10:47:18 4// Author: Bernard Desgraupes 5// Description: Use this header to include the precompiled headers 6// on OSX for dylib target built with CW Pro 8 7 8 9#define TARGET_API_MAC_CARBON 1 10#define TARGET_API_MAC_OSX 1 11#define TclAS_OSX 1 12#define TclAS_CARBON 1 13#define OLDP2C 1 14 15#define TclAS_GCC 1 16#define TclAS_CW 1 17// The following macro characterizes this target 18#ifndef __APPLE_CC__ 19#define TclAS_MW_MACHO 20#endif 21 22#ifndef __APPLE_CC__ 23#include <ConditionalMacros.h> 24#if __POWERPC__ 25 #if TARGET_API_MAC_CARBON 26 // Carbon 27 #if TARGET_API_MAC_OSX 28 // Carbon on X 29 #pragma precompile_target "MW_TclASHeaderCarbonX" 30 #else 31 // CarbonLib on Classic 32 #pragma precompile_target "MW_TclASHeaderCarbon" 33 #endif 34 #else 35 // Classic 36 #pragma precompile_target "MW_TclASHeaderPPC" 37 #endif 38#elif __CFM68K__ 39 #pragma precompile_target "MW_TclASHeaderCFM68K" 40#else 41 #pragma precompile_target "MW_TclASHeader68K" 42#endif 43#endif 44 45#ifdef TclAS_GCC 46 47#include <Carbon/Carbon.h> 48 49#ifndef TclAS_MW_MACHO 50struct SFReply {}; 51#else 52struct SFReply {char dummy;}; 53#endif 54typedef struct SFReply SFReply; 55typedef struct SFReply StandardFileReply; 56 57#else 58 59#include <ConditionalMacros.h> 60 61#endif //TclAS_GCC 62 63#ifndef __APPLE_CC__ 64#undef OLDROUTINENAMES 65#include "tclMacCommonPch.h" 66#undef OLDROUTINENAMES 67#endif 68 69#if TARGET_RT_MAC_MACHO 70#ifdef MAC_TCL 71#undef MAC_TCL 72#endif 73#define TclAS_MACHO 1 74#endif 75 76#ifdef TclAS_MACHO 77#define TclAS_PATH_SEP '/' 78#else 79#define TclAS_PATH_SEP ':' 80#endif 81 82#ifdef TclAS_USE_FRAMEWORK_INCLUDES 83#include <Tcl/tcl.h> 84#else 85#include <tcl.h> 86#endif 87 88#ifndef CONST84 // Tcl 8.4 backwards compatibility 89# define CONST84 90# define CONST84_RETURN CONST 91#endif 92