X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a84a50d509ea865635d1a3f48e89037f523fa822..0a03cd809dd45e3645a54feffe364d8f2b33d71e:/src/win32/config.h diff --git a/src/win32/config.h b/src/win32/config.h index bf54072624..78b1b3ac89 100644 --- a/src/win32/config.h +++ b/src/win32/config.h @@ -17,13 +17,19 @@ #if defined(_XBT_BORLAND_COMPILER) # include + #elif defined(__GNUC__) /* data comes from autoconf when using gnuc (cross-compiling?) */ -#else +# include "gras_config.h" +typedef unsigned int uint32_t; + +#elif defined(_XBT_VISUALC_COMPILER) +# include +# else # 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) ) @@ -74,6 +80,6 @@ const char *gras_wsa_err2string(int errcode); #define S_IWGRP 0 - + #endif /* #ifndef __XBT_WIN32_CONFIG_H__ */