Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Factorize the definition of socklen_t between all compilers
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 22 Mar 2007 16:31:00 +0000 (16:31 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 22 Mar 2007 16:31:00 +0000 (16:31 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3339 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/win32/compiler/borland.h
src/win32/compiler/visualc.h
src/win32/config.h

index 5230c6e..840d627 100644 (file)
@@ -390,7 +390,6 @@ the double. For now, GRAS requires the structures to be compacted. */
 
 /* types */
 typedef unsigned int uint32_t;
-typedef int socklen_t;
 
 /* Choose setjmp as exception implementation */
 #ifndef __EX_MCTX_SJLJ__
index 699003d..bc84a0b 100644 (file)
@@ -396,7 +396,6 @@ the double. For now, GRAS requires the structures to be compacted. */
 
 /* types */
 typedef unsigned int uint32_t;
-typedef int socklen_t;
 
 /* Choose setjmp as exception implementation */
 #ifndef __EX_MCTX_SJLJ__
index 4ba03b5..47d03af 100644 (file)
@@ -26,7 +26,7 @@
 # error "Unknown compiler - please report the problems to the main simgrid mailing list (http://gforge.inria.fr/mail/?group_id=12)"
 #endif
 
-
+typedef int socklen_t;
 #define tcp_read( s, buf, len )        recv( s, buf, len, 0 )
 #define tcp_write( s, buf, len )       send( s, buf, len, 0 )
 #define ioctl( s, c, a )               ioctlsocket( (s), (c), (a) )