diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/fractals.cxx | 17 | ||||
| -rw-r--r-- | test/glpuzzle.cxx | 10 |
2 files changed, 19 insertions, 8 deletions
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 <FL/glut.H> -#include <GL/glu.h> // added for fltk +#ifdef __APPLE__ +# include <OpenGL/glu.h> +#else +# include <GL/glu.h> // added for fltk +#endif #include <stdio.h> #include <stdlib.h> @@ -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 <time.h> #include <math.h> #include <FL/glut.H> // changed for fltk -#include <GL/glu.h> // added for fltk +#ifdef __APPLE__ +# include <OpenGL/glu.h> +#else +# include <GL/glu.h> // 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 $". // |
