@@ -68,9 +68,10 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
6868#include "ceval.h"
6969
7070#ifdef macintosh
71- #include ":::src: stdwin:H:stdwin.h"
71+ #include ":::stdwin:H:stdwin.h"
7272#else /* !macintosh */
7373#include "stdwin.h"
74+ #define HAVE_BITMAPS
7475#endif /* !macintosh */
7576
7677#ifdef USE_THREAD
@@ -684,6 +685,8 @@ drawing_setfgcolor(self, args)
684685 return None ;
685686}
686687
688+ #ifdef HAVE_BITMAPS
689+
687690static object *
688691drawing_bitmap (self , args )
689692 object * self ;
@@ -722,8 +725,12 @@ drawing_bitmap(self, args)
722725 return None ;
723726}
724727
728+ #endif /* HAVE_BITMAPS */
729+
725730static struct methodlist drawing_methods [] = {
731+ #ifdef HAVE_BITMAPS
726732 {"bitmap" , drawing_bitmap },
733+ #endif
727734 {"box" , drawing_box },
728735 {"circle" , drawing_circle },
729736 {"cliprect" , drawing_cliprect },
@@ -1352,6 +1359,8 @@ typeobject Menutype = {
13521359};
13531360
13541361
1362+ #ifdef HAVE_BITMAPS
1363+
13551364/* Bitmaps objects */
13561365
13571366static bitmapobject * newbitmapobject PROTO ((int , int ));
@@ -1506,6 +1515,8 @@ typeobject Bitmaptype = {
15061515 0 , /*tp_repr*/
15071516};
15081517
1518+ #endif /* HAVE_BITMAPS */
1519+
15091520
15101521/* Windows */
15111522
@@ -2438,6 +2449,7 @@ stdwin_listfontnames(self, args)
24382449 return list ;
24392450}
24402451
2452+ #ifdef HAVE_BITMAPS
24412453static object *
24422454stdwin_newbitmap (self , args )
24432455 object * self ;
@@ -2449,6 +2461,7 @@ stdwin_newbitmap(self, args)
24492461 return NULL ;
24502462 return (object * )newbitmapobject (width , height );
24512463}
2464+ #endif
24522465
24532466static struct methodlist stdwin_methods [] = {
24542467 {"askfile" , stdwin_askfile },
@@ -2472,7 +2485,9 @@ static struct methodlist stdwin_methods[] = {
24722485 {"listfontnames" , stdwin_listfontnames },
24732486 {"menucreate" , stdwin_menucreate },
24742487 {"message" , stdwin_message },
2488+ #ifdef HAVE_BITMAPS
24752489 {"newbitmap" , stdwin_newbitmap },
2490+ #endif
24762491 {"open" , stdwin_open },
24772492 {"pollevent" , stdwin_pollevent },
24782493 {"resetselection" , stdwin_resetselection },
0 commit comments