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 <sys/stat.h>
#ifdef _MSC_VER
#define fstat(a,b) _fstat(a,b)
#endif
#include "gstdio.h"
#include "glibintl.h"

View File

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

View File

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