Skip to content

Commit

Permalink
fix win32 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
w23 committed Jul 31, 2017
1 parent 718b1a2 commit 390c9a2
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/app_windows.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,26 +160,7 @@ static void a__AppCleanup(void) {
}

static void a__AppOpenConsole(void) {
HANDLE handle;
int hCrt;
FILE* hf;
extern FILE *_fdopen(int, const char *);

AllocConsole();
/*
handle= GetStdHandle(STD_OUTPUT_HANDLE);
hCrt = _open_osfhandle((long)handle, _O_TEXT);
hf = _fdopen(hCrt, "w");
setvbuf(hf, NULL, _IONBF, 0);
*stdout = *stderr = *hf;
handle = GetStdHandle(STD_INPUT_HANDLE);
hCrt = _open_osfhandle((long)handle, _O_TEXT);
hf = _fdopen(hCrt, "r");
setvbuf(hf, NULL, _IONBF, 128);
*stdin = *hf;
*/

freopen("CONIN$", "r", stdin);
freopen("CONOUT$", "w", stdout);
freopen("CONOUT$", "w", stderr);
Expand Down

0 comments on commit 390c9a2

Please sign in to comment.