X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3dec57adfdb2469b7679930092f0bd9c8569d62c..6ce8b8484654b5ab073951373c93d9bdd8221881:/samples/opengl/penguin/lw.h diff --git a/samples/opengl/penguin/lw.h b/samples/opengl/penguin/lw.h index 06d8d520ab..0a4ca382d9 100644 --- a/samples/opengl/penguin/lw.h +++ b/samples/opengl/penguin/lw.h @@ -21,9 +21,13 @@ #define LW_H #ifdef __WXMAC__ -#include +# ifdef __DARWIN__ +# include +# else +# include +# endif #else -#include +# include #endif #define LW_MAX_POINTS 200 @@ -57,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 }