X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/868ff295d4a5cb82e57929124037681ef638aed2..771c4cd2f6fe9a8e22eb0cdcfa6086cbc24cee51:/src/win32/config.h diff --git a/src/win32/config.h b/src/win32/config.h index dc9cf9361c..47d03afe95 100644 --- a/src/win32/config.h +++ b/src/win32/config.h @@ -12,16 +12,21 @@ /* * config selection. */ -#include +#include #if defined(_XBT_BORLAND_COMPILER) -# include +# include +#elif defined(__GNUC__) + /* data comes from autoconf when using gnuc (cross-compiling?) */ +# 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) ) @@ -72,6 +77,6 @@ const char *gras_wsa_err2string(int errcode); #define S_IWGRP 0 - -#endif /* #ifndef __XBT_WIN32_CONFIG_H__ */ \ No newline at end of file + +#endif /* #ifndef __XBT_WIN32_CONFIG_H__ */