From c2e889169308b826f68becc4c2c14ede857689c3 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sat, 2 Aug 2003 05:54:43 +0000 Subject: 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 --- FL/math.h | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'FL/math.h') diff --git a/FL/math.h b/FL/math.h index bb76d4c33..82c0c4fb6 100644 --- a/FL/math.h +++ b/FL/math.h @@ -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 +// Apple's ProjectBuilder has the nasty habit of including recursively +// down the file tree. To avoid re-including 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 +# 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 $". // -- cgit v1.2.3