X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a84a50d509ea865635d1a3f48e89037f523fa822..af0b76c237b3c0dfbdef8bfc7d0262622c8b19cc:/src/win32/config.h diff --git a/src/win32/config.h b/src/win32/config.h index bf54072624..47d03afe95 100644 --- a/src/win32/config.h +++ b/src/win32/config.h @@ -19,11 +19,14 @@ # include #elif defined(__GNUC__) /* data comes from autoconf when using gnuc (cross-compiling?) */ -#else +# include "gras_config.h" +#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 +77,6 @@ const char *gras_wsa_err2string(int errcode); #define S_IWGRP 0 - + #endif /* #ifndef __XBT_WIN32_CONFIG_H__ */