Mercurial > dwindows
comparison compat.h @ 1329:19bfcdbab74e
Hopefully the last socklen_t change... OS/2 needs it too.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 10 Nov 2011 13:30:14 +0000 |
parents | be2c04276209 |
children | 56f311dc23f6 |
comparison
equal
deleted
inserted
replaced
1328:be2c04276209 | 1329:19bfcdbab74e |
---|---|
318 sockclose(tmpsock); \ | 318 sockclose(tmpsock); \ |
319 } \ | 319 } \ |
320 } | 320 } |
321 #endif | 321 #endif |
322 | 322 |
323 /* Visual Studio doesn't define this... so just in case */ | 323 /* Ok Windows and OS/2 both seem to be missing this */ |
324 #ifdef MSVC | 324 #if defined(__WIN32__) || defined(__OS2__) |
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 |