summaryrefslogtreecommitdiffstats
path: root/Modules/stdwinmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1993-07-29 13:14:32 (GMT)
committerGuido van Rossum <guido@python.org>1993-07-29 13:14:32 (GMT)
commite906606f5d4aff04c86f69aaeaadbca85d8ccb2d (patch)
tree7d6889d344aada586126a2390a3066ccc443005f /Modules/stdwinmodule.c
parent8e2ec56cbc74578a1e700dc237368e26bde07427 (diff)
downloadcpython-e906606f5d4aff04c86f69aaeaadbca85d8ccb2d.zip
cpython-e906606f5d4aff04c86f69aaeaadbca85d8ccb2d.tar.gz
cpython-e906606f5d4aff04c86f69aaeaadbca85d8ccb2d.tar.bz2
Final touch before release.
Diffstat (limited to 'Modules/stdwinmodule.c')
-rw-r--r--Modules/stdwinmodule.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/Modules/stdwinmodule.c b/Modules/stdwinmodule.c
index 6e666a6..a6f6fba 100644
--- a/Modules/stdwinmodule.c
+++ b/Modules/stdwinmodule.c
@@ -68,9 +68,10 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "ceval.h"
#ifdef macintosh
-#include ":::src:stdwin:H:stdwin.h"
+#include ":::stdwin:H:stdwin.h"
#else /* !macintosh */
#include "stdwin.h"
+#define HAVE_BITMAPS
#endif /* !macintosh */
#ifdef USE_THREAD
@@ -684,6 +685,8 @@ drawing_setfgcolor(self, args)
return None;
}
+#ifdef HAVE_BITMAPS
+
static object *
drawing_bitmap(self, args)
object *self;
@@ -722,8 +725,12 @@ drawing_bitmap(self, args)
return None;
}
+#endif /* HAVE_BITMAPS */
+
static struct methodlist drawing_methods[] = {
+#ifdef HAVE_BITMAPS
{"bitmap", drawing_bitmap},
+#endif
{"box", drawing_box},
{"circle", drawing_circle},
{"cliprect", drawing_cliprect},
@@ -1352,6 +1359,8 @@ typeobject Menutype = {
};
+#ifdef HAVE_BITMAPS
+
/* Bitmaps objects */
static bitmapobject *newbitmapobject PROTO((int, int));
@@ -1506,6 +1515,8 @@ typeobject Bitmaptype = {
0, /*tp_repr*/
};
+#endif /* HAVE_BITMAPS */
+
/* Windows */
@@ -2438,6 +2449,7 @@ stdwin_listfontnames(self, args)
return list;
}
+#ifdef HAVE_BITMAPS
static object *
stdwin_newbitmap(self, args)
object *self;
@@ -2449,6 +2461,7 @@ stdwin_newbitmap(self, args)
return NULL;
return (object *)newbitmapobject(width, height);
}
+#endif
static struct methodlist stdwin_methods[] = {
{"askfile", stdwin_askfile},
@@ -2472,7 +2485,9 @@ static struct methodlist stdwin_methods[] = {
{"listfontnames", stdwin_listfontnames},
{"menucreate", stdwin_menucreate},
{"message", stdwin_message},
+#ifdef HAVE_BITMAPS
{"newbitmap", stdwin_newbitmap},
+#endif
{"open", stdwin_open},
{"pollevent", stdwin_pollevent},
{"resetselection", stdwin_resetselection},