From 445bb2718b7d44282cd58cc90e68a9ca9b51735f Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Mon, 19 May 2008 12:42:14 +0000 Subject: [PATCH] Include the dirent.h and wdirent.c from ../build/win32/dirent directly 2008-05-19 Tor Lillqvist * glib/gdir.c: Include the dirent.h and wdirent.c from ../build/win32/dirent directly here when compiling with MSVC and without HAVE_DIRENT_H. svn path=/trunk/; revision=6915 --- ChangeLog | 6 ++++++ glib/gdir.c | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index e560b9d16..7c76dc735 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-05-19 Tor Lillqvist + + * glib/gdir.c: Include the dirent.h and wdirent.c from + ../build/win32/dirent directly here when compiling with MSVC and + without HAVE_DIRENT_H. + 2008-05-19 Hans Breuer * glib/makefile.msc : added gi18n.c diff --git a/glib/gdir.c b/glib/gdir.c index f9b1457c4..aab6c59ae 100644 --- a/glib/gdir.c +++ b/glib/gdir.c @@ -40,6 +40,11 @@ #include "galias.h" +#if defined (_MSC_VER) && !defined (HAVE_DIRENT_H) +#include "../build/win32/dirent/dirent.h" +#include "../build/win32/dirent/wdirent.c" +#endif + struct _GDir { #ifdef G_OS_WIN32