Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e906606

Browse files
committed
Final touch before release.
1 parent 8e2ec56 commit e906606

2 files changed

Lines changed: 19 additions & 4 deletions

File tree

Modules/config.c.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,17 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
6262

6363
#include "patchlevel.h"
6464

65-
#define VERSION "0.9.%d BETA (%s)"
65+
#define VERSION "0.9.%d (%s)"
6666

6767
#ifdef __DATE__
6868
#define DATE __DATE__
6969
#else
70-
#define DATE ">= 27 Mar 1993"
70+
#define DATE ">= 29 Jul 1993"
7171
#endif
7272

7373
#ifdef USE_STDWIN
7474
#ifdef macintosh
75-
#include ":::src:stdwin:H:stdwin.h"
75+
#include ":::stdwin:H:stdwin.h"
7676
#else /* !macintosh */
7777
#include "stdwin.h"
7878
#endif /* !macintosh */

Modules/stdwinmodule.c

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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+
687690
static object *
688691
drawing_bitmap(self, args)
689692
object *self;
@@ -722,8 +725,12 @@ drawing_bitmap(self, args)
722725
return None;
723726
}
724727

728+
#endif /* HAVE_BITMAPS */
729+
725730
static 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

13571366
static 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
24412453
static object *
24422454
stdwin_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

24532466
static 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

Comments
 (0)