Define fstat() for msvc build

This commit is contained in:
Hans Breuer 2009-05-30 15:33:14 +02:00
parent 75ef018248
commit 4a50bab276
3 changed files with 13 additions and 0 deletions

View File

@ -81,6 +81,10 @@
#include <errno.h> #include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#ifdef _MSC_VER
#define fstat(a,b) _fstat(a,b)
#endif
#include "gstdio.h" #include "gstdio.h"
#include "glibintl.h" #include "glibintl.h"

View File

@ -39,6 +39,10 @@
#ifdef G_OS_WIN32 #ifdef G_OS_WIN32
#include <io.h> #include <io.h>
#ifdef _MSC_VER
#define fstat(a,b) _fstat(a,b)
#endif
#ifndef S_ISREG #ifndef S_ISREG
#define S_ISREG(mode) ((mode)&_S_IFREG) #define S_ISREG(mode) ((mode)&_S_IFREG)
#endif #endif

View File

@ -37,6 +37,11 @@
#ifdef G_OS_WIN32 #ifdef G_OS_WIN32
#include <windows.h> #include <windows.h>
#include <io.h> #include <io.h>
#ifdef _MSC_VER
#define fstat(a,b) _fstat(a,b)
#endif
#endif #endif
#include "gconvert.h" #include "gconvert.h"