X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8b089c5e8c8a2140258d150ca1ce42afd3b79e1b..6ce8b8484654b5ab073951373c93d9bdd8221881:/samples/opengl/penguin/lw.h?ds=sidebyside diff --git a/samples/opengl/penguin/lw.h b/samples/opengl/penguin/lw.h index b49e8ffc91..0a4ca382d9 100644 --- a/samples/opengl/penguin/lw.h +++ b/samples/opengl/penguin/lw.h @@ -20,7 +20,15 @@ #ifndef LW_H #define LW_H -#include +#ifdef __WXMAC__ +# ifdef __DARWIN__ +# include +# else +# include +# endif +#else +# include +#endif #define LW_MAX_POINTS 200 #define LW_MAX_NAME_LEN 500 @@ -53,13 +61,15 @@ typedef struct { 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 }