/*** *hostenv.h * * Copyright (C) 1992-1994, Microsoft Corporation. All Rights Reserved. * *Purpose: * Generic host specific includes. * *Implementation Notes: * *****************************************************************************/ #if defined(_MAC) #if defined(_PPCMAC) #pragma data_seg("_FAR_DATA") #pragma data_seg( ) #define MAXLONG 0x7fffffff #define EventHandlerProcPtr AEEventHandlerUPP #else //_PPCMAC #define GetMenuItemText(mApple,menuItem,daName) GetItem(mApple,menuItem,daName) #endif //_PPCMAC #endif //_MAC #if defined(_MAC) #if defined(_MSC_VER) # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include #else //_MSC_VER # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include #endif //_MSC_VER # include # include # include # define TCHAR char # define TSTR(str) str # define STRING(str) (str) # define WIDESTRING(str) (str) #elif defined(WIN32) # include # if defined(UNICODE) #define TCHAR WCHAR #define TSTR(str) L##str #define STRING(str) (str) #define WIDESTRING(str) (str) # else #define TCHAR char #define TSTR(str) str #define STRING(str) AnsiString(str) #define WIDESTRING(str) WideString(str) extern "C" char FAR* AnsiString(OLECHAR FAR* strIn); extern "C" OLECHAR FAR* WideString(char FAR* strIn); # endif #else /* WIN16 */ # include # include # include # include # define TCHAR char # define TSTR(str) str # define STRING(str) (str) # define WIDESTRING(str) (str) #endif