Skip to content

Commit 1b3db5a

Browse files
committed
Fix building examples
"helloUnicode.d(17): Deprecation: module std.c.locale is deprecated - Import core.stdc.locale instead" "printw.d(27): Error: function expected before (), not module printw of type void"
1 parent c063745 commit 1b3db5a

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)