From: cherierm Date: Mon, 22 Oct 2007 09:24:55 +0000 (+0000) Subject: Visual C++ already declare the isatty function in the header.h. So this change avoids... X-Git-Tag: v3.3~956 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/b697365d2d5d7ac1558cfba04c50b0024a966808?hp=089cf09003bf75e0bea78f8b9533cdb8d089069f Visual C++ already declare the isatty function in the header.h. So this change avoids the warning cause by this redeclaration for this compiler. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4844 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/gras/DataDesc/ddt_parse.yy.c b/src/gras/DataDesc/ddt_parse.yy.c index 1b9e0b1f85..31bef83338 100644 --- a/src/gras/DataDesc/ddt_parse.yy.c +++ b/src/gras/DataDesc/ddt_parse.yy.c @@ -1502,7 +1502,7 @@ static void gras_ddt_parse__load_buffer_state (void) gras_ddt_parse_free((void *) b ); } -#ifndef __cplusplus +#if !defined(__cplusplus) && !defined(WIN32) extern int isatty (int ); #endif /* __cplusplus */