From a6e182d18d444c172b6269f8ec035530df1b8fbf Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Mon, 6 Aug 2012 08:24:10 +0000 Subject: [PATCH] win32 --- Common/GmshMessage.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Common/GmshMessage.cpp b/Common/GmshMessage.cpp index 8d39baa3bb..6d762faaf2 100644 --- a/Common/GmshMessage.cpp +++ b/Common/GmshMessage.cpp @@ -7,6 +7,7 @@ #include <stdio.h> #include <string.h> #include <time.h> +#include <sys/stat.h> #include "GmshConfig.h" #include "GmshMessage.h" #include "GmshSocket.h" @@ -16,10 +17,6 @@ #include "Context.h" #include "OS.h" -#if !defined(WIN32) || defined(__CYGWIN__) -#include <sys/stat.h> -#endif - #if defined(HAVE_ONELAB) #include "onelab.h" #endif @@ -161,13 +158,11 @@ void Msg::Exit(int level) static int streamIsFile(FILE* stream) { -#if !defined(WIN32) || defined(__CYGWIN__) // the given stream is definately not interactive if it is a regular file struct stat stream_stat; if(fstat(fileno(stream), &stream_stat) == 0){ if(stream_stat.st_mode & S_IFREG) return 1; } -#endif return 0; } -- GitLab