Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add #ifdef GLK_MODULE_UNICODE #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions glkop.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ glui32 perform_glk(glui32 funcnum, glui32 numargs, glui32 *arglist)
goto WrongArgNum;
retval = glk_char_to_upper(arglist[0] & 0xFF);
break;
#ifdef GLK_MODULE_UNICODE
case 0x0128: /* put_char_uni */
if (numargs != 1)
goto WrongArgNum;
Expand All @@ -279,6 +280,7 @@ glui32 perform_glk(glui32 funcnum, glui32 numargs, glui32 *arglist)
goto WrongArgNum;
glk_put_char_stream_uni(find_stream_by_id(arglist[0]), arglist[1]);
break;
#endif

WrongArgNum:
fatal_error("Wrong number of arguments to Glk function.");
Expand Down