Skip to content

Commit

Permalink
Merge pull request #189 from barak/master
Browse files Browse the repository at this point in the history
misc fixes and updates
  • Loading branch information
jrincayc authored Oct 8, 2024
2 parents 9f0b638 + c53b0ec commit 446dc86
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
1 change: 1 addition & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ EXTRA_DIST = eval.h globals.h gpl_text.h LogoFrame.h logo.h \
# Source for utility program for regenerating ./helpfiles/ from ./usermanual
# See below; needs to run in build environment.
EXTRA_DIST += makehelp.c
CLEANFILES = makehelp

# Misc information, documentation, historical files, etc
EXTRA_DIST += changes.txt config.h.msys diffscript.pl .gitignore \
Expand Down
12 changes: 9 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,13 @@ AS_IF([test x${enable_gitid} = xyes],
[AC_DEFINE([GITID],[1],[enable gitid in version])])
AM_CONDITIONAL([GITID], [test x${enable_gitid} = xyes])

m4_ifdef([WX_CONFIG_CHECK], [
AC_MSG_CHECKING([enable_wx])
AC_ARG_ENABLE([wx],
[AS_HELP_STRING([--enable-wx],[try to use wx library for graphics (default=yes)])],,[enable_wx=yes])
AC_MSG_RESULT([$enable_wx])

AS_IF([test x${enable_wx} = xyes],
[m4_ifdef([WX_CONFIG_CHECK], [
WX_CONFIG_OPTIONS
WX_CONFIG_CHECK([3.0.0], [wxWin=1])
Expand All @@ -52,7 +58,8 @@ AM_COND_IF([WX],
], [
AC_MSG_NOTICE([No WX_CONFIG_CHECK available])
AM_CONDITIONAL([WX], [test 1 = 0])
])
])],
AM_CONDITIONAL([WX], [test 1 = 0]))


AC_MSG_CHECKING([enable_x11])
Expand Down Expand Up @@ -106,7 +113,6 @@ AC_TYPE_SIZE_T

dnl Checks for library functions.
AC_CHECK_FUNCS([usleep srandom sigsetmask matherr drem irint memcpy])
AC_PROG_GCC_TRADITIONAL

AC_SUBST(WXOFILES)
AC_SUBST(WXSRCFILES)
Expand Down
2 changes: 2 additions & 0 deletions logo.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@

#define ecma /* for European extended character set using parity bit */

/* glibc */
#define SIG_TAKES_ARG

#ifdef WIN32
#define ibm
Expand Down
5 changes: 3 additions & 2 deletions wxterm.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,9 @@ char wx_font_face[300] = "Courier"; //300 matches lsetfont in wxterm.c
int wx_font_size = 12;
int label_height = 15;

int termcap_putter(char ch) {
*termcap_ptr++ = ch;
int termcap_putter(int ch) {
/* XXX: Should this check for any non-char values? */
*termcap_ptr++ = (char)ch;
return 0;
}

Expand Down

0 comments on commit 446dc86

Please sign in to comment.