Mac Carbon updates

This commit is contained in:
kmhugo
2004-08-10 05:37:41 +00:00
parent 3b2efac99c
commit f4322a56fb
11 changed files with 246 additions and 65 deletions

View File

@@ -53,9 +53,16 @@
* include the relevant files in the relevant .c files instead !
*/
#if TARGET_API_MAC_CARBON
/* Avoid including <CarbonCore/fp.h> -- it has a conflicting expl() */
# define __FP__
# include <Carbon/Carbon.h>
# ifdef GNUC
/* Avoid including <CarbonCore/fp.h> -- it has a conflicting expl() */
# define __FP__
# include <Carbon/Carbon.h>
# else
/* Avoid including <fenv.h> -- it uses GENERATINGPOWERPC */
# define __FENV__
# include <machine/types.h>
# include <Carbon.h>
# endif
#else
# include <MacTypes.h>
#endif
@@ -73,7 +80,7 @@
extern void error(const char *,...);
#if !defined(O_WRONLY)
# ifdef __MWERKS__
# if defined(__MWERKS__) && !TARGET_API_MAC_CARBON
# include <unix.h>
# endif
# include <fcntl.h>

View File

@@ -44,7 +44,7 @@
#undef red /* undef internal color const strings from decl */
#undef green
#undef blue
#if !TARGET_API_MAC_CARBON
#if 1 /*!TARGET_API_MAC_CARBON*/
# include <windows.h>
#endif