mirror of
https://github.com/fltk/fltk.git
synced 2026-05-25 17:42:14 +08:00
OS X: more references to non-Cocoa builds removed
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7354 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -29,11 +29,7 @@
|
||||
#ifndef FL_DOXYGEN // PREVENT DOXYGEN'S USE OF THIS FILE
|
||||
|
||||
// OSX-SPECIFIC NATIVE BROWSER
|
||||
#ifdef __APPLE_CC__
|
||||
#include <Carbon/Carbon.h>
|
||||
#else /*__APPLE_CC__*/
|
||||
#include <Carbon.h>
|
||||
#endif /*__APPLE_CC__*/
|
||||
#include <config.h>
|
||||
|
||||
#undef check // necessary for use of Fl::check()
|
||||
|
||||
@@ -74,17 +74,6 @@ inline int fl_filename_relative(char *to, const char *from) { return fl_filename
|
||||
|
||||
struct dirent {char d_name[1];};
|
||||
|
||||
# elif defined(__APPLE__) && defined(__PROJECTBUILDER__)
|
||||
|
||||
/* Apple's ProjectBuilder has the nasty habit of including recursively
|
||||
* down the file tree. To avoid re-including <FL/dirent.h> we must
|
||||
* directly include the systems math file. (Plus, I could not find a
|
||||
* predefined macro for ProjectBuilder builds, so we have to define it
|
||||
* in the project)
|
||||
*/
|
||||
# include <sys/types.h>
|
||||
# include "/usr/include/dirent.h"
|
||||
|
||||
# elif defined(__WATCOMC__)
|
||||
# include <sys/types.h>
|
||||
# include <direct.h>
|
||||
|
||||
@@ -38,7 +38,6 @@
|
||||
#include <Carbon/Carbon.h>
|
||||
#include <config.h>
|
||||
|
||||
#ifdef __APPLE_COCOA__
|
||||
#ifndef MAC_OS_X_VERSION_10_3
|
||||
#define MAC_OS_X_VERSION_10_3 1030
|
||||
#endif
|
||||
@@ -54,7 +53,6 @@
|
||||
#ifndef MAC_OS_X_VERSION_MAX_ALLOWED
|
||||
#define MAC_OS_X_VERSION_MAX_ALLOWED MAC_OS_X_VERSION_10_3
|
||||
#endif
|
||||
#endif // __APPLE_COCOA__
|
||||
|
||||
#ifndef CGFLOAT_DEFINED //appears with 10.5 in CGBase.h
|
||||
#if defined(__LP64__) && __LP64__
|
||||
|
||||
@@ -33,11 +33,7 @@
|
||||
// directly include the systems math file. (Plus, I could not find a
|
||||
// predefined macro for ProjectBuilder builds, so we have to define it
|
||||
// in the project)
|
||||
# if defined(__APPLE__) && defined(__PROJECTBUILDER__)
|
||||
# include "/usr/include/math.h"
|
||||
# else
|
||||
# include <math.h>
|
||||
# endif
|
||||
# include <math.h>
|
||||
|
||||
# ifdef __EMX__
|
||||
# include <float.h>
|
||||
|
||||
+1
-1
@@ -40,7 +40,7 @@
|
||||
#include <stdlib.h>
|
||||
#include "flstring.h"
|
||||
|
||||
#if defined(__APPLE__) && defined(__APPLE_COCOA__)
|
||||
#if defined(__APPLE__)
|
||||
#import <Cocoa/Cocoa.h>
|
||||
#endif
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user