comparison compat.h @ 582:ce08e7a56724

Minor change to the Windows sockinit() macro.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 20 May 2005 05:53:06 +0000
parents 53639d920735
children 6aad620f646d
comparison
equal deleted inserted replaced
581:53639d920735 582:ce08e7a56724
263 #endif 263 #endif
264 264
265 #ifdef __IBMC__ 265 #ifdef __IBMC__
266 #define sockinit() sock_init(); 266 #define sockinit() sock_init();
267 #elif defined(__WIN32__) || defined(WINNT) 267 #elif defined(__WIN32__) || defined(WINNT)
268 static WSADATA wsa; 268 #define sockinit() { static WSADATA wsa; WSAStartup(MAKEWORD (1, 1), &wsa); }
269 #define sockinit() WSAStartup(MAKEWORD (1, 1), &wsa)
270 #else /* !WIN32 */ 269 #else /* !WIN32 */
271 #define sockinit() 270 #define sockinit()
272 #endif 271 #endif
273 272
274 #if defined(__WIN32__) || defined(WINNT) 273 #if defined(__WIN32__) || defined(WINNT)