Skip to content

Commit 629933c

Browse files
authored
Merge pull request #27 from jaydg/example_fixes
Fix building examples
2 parents 1cfd07b + 1b3db5a commit 629933c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/helloUnicode.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* Modified by: Wyatt
1515
*/
1616
import std.string: toStringz;
17-
import std.c.locale; // Need setlocale()
17+
import core.stdc.locale; // Need setlocale()
1818
import deimos.ncurses.ncurses;
1919

2020
void main()

examples/printw.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ void main()
2424
auto rowcol = "This screen has %d rows and %d columns\n".toStringz;
2525
mvprintw(row-2, 0, rowcol, row+1, col+1);
2626

27-
printw(toStringz("Try resizing your window(if possible) and then run this program again"));
27+
deimos.ncurses.ncurses.printw(toStringz("Try resizing your window(if possible) and then run this program again"));
2828
refresh();
2929

3030
getch();

0 commit comments

Comments
 (0)