#define LW_H
#ifdef __WXMAC__
-#include <glu.h>
+# ifdef __DARWIN__
+# include <OpenGL/glu.h>
+# else
+# include <glu.h>
+# endif
#else
-#include <GL/glu.h>
+# include <GL/glu.h>
#endif
#define LW_MAX_POINTS 200
extern "C" {
#endif
-int lw_is_lwobject(const char *lw_file);
+#if wxUSE_GLCANVAS
+bool lw_is_lwobject(const char *lw_file);
lwObject *lw_object_read(const char *lw_file);
void lw_object_free( lwObject *lw_object);
void lw_object_show(const lwObject *lw_object);
GLfloat lw_object_radius(const lwObject *lw_object);
void lw_object_scale (lwObject *lw_object, GLfloat scale);
+#endif
#ifdef __cplusplus
}