sources/main.cpp

changeset 89
777b2a10b835
parent 88
08ccaf26cffd
child 93
1ea012a6e1ec
equal deleted inserted replaced
88:08ccaf26cffd 89:777b2a10b835
44 // ------------------------------------------------------------------------------------------------- 44 // -------------------------------------------------------------------------------------------------
45 // 45 //
46 int main (int argc, char* argv[]) 46 int main (int argc, char* argv[])
47 { 47 {
48 #ifdef _WIN32 48 #ifdef _WIN32
49 # ifdef HAVE_PDCURSES_WIN32A
50 // PDCurses-win32a uses a GUI window of its own so we need to destroy the console window.
49 FreeConsole(); 51 FreeConsole();
52 # endif
50 53
51 WSADATA wsaData; 54 WSADATA wsaData;
52 int result = WSAStartup (MAKEWORD (2, 2), &wsaData); 55 int result = WSAStartup (MAKEWORD (2, 2), &wsaData);
53 56
54 if (result != 0) 57 if (result != 0)

mercurial