Michael Sweet wrote:
> Albrecht Schlosser wrote:
>> ...
>> If this is okay and working, then (maybe) we could also make the
>> compiler macro USE_ASYNC_SELECT obsolete. By loading the dll and ...
>>
>> fl_wsk_async_select = (fl_wsk_async_select_f)
>>    GetProcAddress(s_wsock_mod, "WSAAsyncSelect");
>>
>> we get this additionally. However, I don't know, if the code with
>> WSAAsyncSelect() has ever been tested and would be working. Does
>> anybody know this?
> 
> Async select should work with all versions of winsock2 - the problems
> we had were between Win9x and WinNT/2000 and winsock1, where only
> NT/2000 winsock1 supported it.

If this is so, then we could simply put

#define USE_ASYNC_SELECT

in the winsock2 conditional path, and that's it (?).


# if !defined(USE_WSOCK1)
#  define WSCK_DLL_NAME "WS2_32.DLL"
#  include <winsock2.h>

#  define USE_ASYNC_SELECT              <-- added here ?

#else
#  define WSCK_DLL_NAME "WSOCK32.DLL"
#  include <winsock.h>
# endif
#endif


Albrecht
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to