From e07200c4e847ddff8a46ea9fdc23e17437d74c15 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 6 Dec 2001 00:17:47 +0000 Subject: Implemeted 95% of all Mac OS X support. Makefiles still need modifications. Almost all test applications run out of the box (->Makefile). See more information in README.mac . Changes: - message handling - access to opaque port structures - image, bitmap, pixmap support - most OpenGL stuff - window styles git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1812 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- test/fractals.cxx | 17 ++++++++++++----- test/glpuzzle.cxx | 10 +++++++--- 2 files changed, 19 insertions(+), 8 deletions(-) (limited to 'test') diff --git a/test/fractals.cxx b/test/fractals.cxx index a351eb1e5..17c720545 100644 --- a/test/fractals.cxx +++ b/test/fractals.cxx @@ -1,5 +1,5 @@ // -// "$Id: fractals.cxx,v 1.5.2.6.2.1 2001/11/29 21:24:49 easysw Exp $" +// "$Id: fractals.cxx,v 1.5.2.6.2.2 2001/12/06 00:17:47 matthiaswm Exp $" // // Fractal drawing demo for the Fast Light Tool Kit (FLTK). // @@ -62,7 +62,11 @@ int main(int, char**) { */ #include -#include // added for fltk +#ifdef __APPLE__ +# include +#else +# include // added for fltk +#endif #include #include @@ -75,8 +79,11 @@ int main(int, char**) { #include "fracviewer.c" // changed from .h for fltk #if defined(WIN32) || defined(__EMX__) -#define drand48() (((float) rand())/((float) RAND_MAX)) -#define srand48(x) (srand((x))) +# define drand48() (((float) rand())/((float) RAND_MAX)) +# define srand48(x) (srand((x))) +#elif defined __APPLE__ +# define drand48() (((float) rand())/((float) RAND_MAX)) +# define srand48(x) (srand((x))) #endif typedef enum { NOTALLOWED, MOUNTAIN, TREE, ISLAND, BIGMTN, STEM, LEAF, @@ -806,5 +813,5 @@ int main(int argc, char** argv) #endif // -// End of "$Id: fractals.cxx,v 1.5.2.6.2.1 2001/11/29 21:24:49 easysw Exp $". +// End of "$Id: fractals.cxx,v 1.5.2.6.2.2 2001/12/06 00:17:47 matthiaswm Exp $". // diff --git a/test/glpuzzle.cxx b/test/glpuzzle.cxx index 5a6bc9dd7..6a980b52d 100644 --- a/test/glpuzzle.cxx +++ b/test/glpuzzle.cxx @@ -1,5 +1,5 @@ // -// "$Id: glpuzzle.cxx,v 1.8.2.5 2001/04/30 17:17:01 easysw Exp $" +// "$Id: glpuzzle.cxx,v 1.8.2.5.2.1 2001/12/06 00:17:47 matthiaswm Exp $" // // OpenGL puzzle demo for the Fast Light Tool Kit (FLTK). // @@ -45,7 +45,11 @@ int main(int, char**) { #include #include #include // changed for fltk -#include // added for fltk +#ifdef __APPLE__ +# include +#else +# include // added for fltk +#endif #include "trackball.c" // changed from trackball.h for fltk #define WIDTH 4 @@ -1480,5 +1484,5 @@ main(int argc, char **argv) #endif // added for fltk's distribution // -// End of "$Id: glpuzzle.cxx,v 1.8.2.5 2001/04/30 17:17:01 easysw Exp $". +// End of "$Id: glpuzzle.cxx,v 1.8.2.5.2.1 2001/12/06 00:17:47 matthiaswm Exp $". // -- cgit v1.2.3