mirror of
https://github.com/fltk/fltk.git
synced 2026-06-06 08:32:07 +08:00
OS X: some changes to support Apples ProjectBuilder.
OS X: FLTK now queries the true windows position from the window manager after creating a new window. This fixes the problem with popup menues showing up at the wrong position. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3067 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+12
-2
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* "$Id: filename.H,v 1.11.2.4.2.12 2003/01/30 21:40:42 easysw Exp $"
|
||||
* "$Id: filename.H,v 1.11.2.4.2.13 2003/08/02 05:54:43 matthiaswm Exp $"
|
||||
*
|
||||
* Filename header file for the Fast Light Tool Kit (FLTK).
|
||||
*
|
||||
@@ -55,6 +55,16 @@ 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"
|
||||
|
||||
# else
|
||||
/*
|
||||
* WARNING: on some systems (very few nowadays?) <dirent.h> may not exist.
|
||||
@@ -117,5 +127,5 @@ FL_EXPORT int fl_filename_list(const char *d, struct dirent ***l,
|
||||
#endif /* FL_FILENAME_H */
|
||||
|
||||
/*
|
||||
* End of "$Id: filename.H,v 1.11.2.4.2.12 2003/01/30 21:40:42 easysw Exp $".
|
||||
* End of "$Id: filename.H,v 1.11.2.4.2.13 2003/08/02 05:54:43 matthiaswm Exp $".
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: math.h,v 1.4.2.4.2.8 2003/01/30 21:40:55 easysw Exp $"
|
||||
// "$Id: math.h,v 1.4.2.4.2.9 2003/08/02 05:54:43 matthiaswm Exp $"
|
||||
//
|
||||
// Math header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -26,7 +26,16 @@
|
||||
#ifndef fl_math_h
|
||||
# define fl_math_h
|
||||
|
||||
# include <math.h>
|
||||
// Apple's ProjectBuilder has the nasty habit of including recursively
|
||||
// down the file tree. To avoid re-including <FL/math.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)
|
||||
# if defined(__APPLE__) && defined(__PROJECTBUILDER__)
|
||||
# include "/usr/include/math.h"
|
||||
# else
|
||||
# include <math.h>
|
||||
# endif
|
||||
|
||||
|
||||
# ifndef M_PI
|
||||
@@ -57,5 +66,5 @@ inline double copysign(double a, double b) {return b<0 ? -a : a;}
|
||||
|
||||
|
||||
//
|
||||
// End of "$Id: math.h,v 1.4.2.4.2.8 2003/01/30 21:40:55 easysw Exp $".
|
||||
// End of "$Id: math.h,v 1.4.2.4.2.9 2003/08/02 05:54:43 matthiaswm Exp $".
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user