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) |