#ifndef LW_H
#define LW_H
-#include <GL/gl.h>
+#ifdef __WXMAC__
+# ifdef __DARWIN__
+# include <OpenGL/glu.h>
+# else
+# include <glu.h>
+# endif
+#else
+# include <GL/glu.h>
+#endif
#define LW_MAX_POINTS 200
#define LW_MAX_NAME_LEN 500
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
}