From: cherierm Date: Mon, 22 Oct 2007 09:06:52 +0000 (+0000) Subject: Visual C++ already declare the isatty function in io.h. So this change avoids a warni... X-Git-Tag: v3.3~958 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/f0886ea4ab50491bd7cf056d8ed576cd939acd3e Visual C++ already declare the isatty function in io.h. So this change avoids a warning for this compiler. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4842 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/xbt/graphxml.c b/src/xbt/graphxml.c index 713c7bf451..2b1a8efbb6 100644 --- a/src/xbt/graphxml.c +++ b/src/xbt/graphxml.c @@ -2654,7 +2654,7 @@ static void xbt_graph_parse__load_buffer_state (void) xbt_graph_parse_free((void *) b ); } -#ifndef __cplusplus +#if !defined(__cplusplus) && !defined(WIN32) extern int isatty (int ); #endif /* __cplusplus */