Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / network / WirelessManager / wpa_supplicant / wpa_gui / main.cpp
bloba78473a8c6b10d03f7d5c392af9c6cecdaf16f09
1 #ifdef CONFIG_NATIVE_WINDOWS
2 #include <winsock.h>
3 #endif /* CONFIG_NATIVE_WINDOWS */
4 #include <qapplication.h>
5 #include "wpagui.h"
7 int main( int argc, char ** argv )
9 QApplication a( argc, argv );
10 WpaGui w;
11 int ret;
13 #ifdef CONFIG_NATIVE_WINDOWS
14 WSADATA wsaData;
15 if (WSAStartup(MAKEWORD(2, 0), &wsaData)) {
16 printf("Could not find a usable WinSock.dll\n");
17 return -1;
19 #endif /* CONFIG_NATIVE_WINDOWS */
21 w.show();
22 a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
23 ret = a.exec();
25 #ifdef CONFIG_NATIVE_WINDOWS
26 WSACleanup();
27 #endif /* CONFIG_NATIVE_WINDOWS */
29 return ret;