comparison compat.h @ 1328:be2c04276209

Changed socklen_t typedef #ifdef to check for MSVC.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 10 Nov 2011 03:54:32 +0000
parents 03f0a57c9e87
children 19bfcdbab74e
comparison
equal deleted inserted replaced
1327:e4ef8d86dfc4 1328:be2c04276209
319 } \ 319 } \
320 } 320 }
321 #endif 321 #endif
322 322
323 /* Visual Studio doesn't define this... so just in case */ 323 /* Visual Studio doesn't define this... so just in case */
324 #ifndef socklen_t 324 #ifdef MSVC
325 typedef int socklen_t; 325 typedef int socklen_t;
326 #endif 326 #endif
327 327
328 #define socksprint(a, b) sockwrite(a, b, strlen(b), 0) 328 #define socksprint(a, b) sockwrite(a, b, strlen(b), 0)
329 329