Introduce symbol USE_WINSOCK which will be defined when

using winsock or winsock2 API.
This commit is contained in:
Yang Tse
2006-10-18 15:57:49 +00:00
parent 5d9bf10232
commit 70ed671edf
+16
View File
@@ -69,6 +69,22 @@
# endif
#endif
/*
* Define USE_WINSOCK to 2 if we have and use WINSOCK2 API, else
* define USE_WINSOCK to 1 if we have and use WINSOCK API, else
* undefine USE_WINSOCK.
*/
#undef USE_WINSOCK
#ifdef HAVE_WINSOCK2_H
# define USE_WINSOCK 2
#else
# ifdef HAVE_WINSOCK_H
# define USE_WINSOCK 1
# endif
#endif
/*
* Work-arounds for systems without configure support
*/