From 194493f3f8718b10ffc16f9e1b863a1b7f57cbc9 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 27 Aug 2008 12:48:57 +0000 Subject: [PATCH] Should not define HAVE_DIRENT_H when compiling with MSVC, as the only file 2008-08-27 Tor Lillqvist * config.h.win32.in: Should not define HAVE_DIRENT_H when compiling with MSVC, as the only file which checks HAVE_DIRENT_H is gdir.c, and that includes the dirent.h and wdirent.c from build/win32/dirent explicitly anyway when being compiled with MSVC. svn path=/trunk/; revision=7403 --- ChangeLog | 8 ++++++++ config.h.win32.in | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index 65d32e2..a996c46 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-08-27 Tor Lillqvist + + * config.h.win32.in: Should not define HAVE_DIRENT_H when + compiling with MSVC, as the only file which checks HAVE_DIRENT_H + is gdir.c, and that includes the dirent.h and wdirent.c from + build/win32/dirent explicitly anyway when being compiled with + MSVC. + 2008-08-22 Björn Lindqvist Bug 523939 – Example program for GValue diff --git a/config.h.win32.in b/config.h.win32.in index d9ee351..78ed094 100644 --- a/config.h.win32.in +++ b/config.h.win32.in @@ -154,7 +154,11 @@ #define HAVE_DCGETTEXT 1 /* Define to 1 if you have the header file. */ +#ifndef _MSC_VER #define HAVE_DIRENT_H 1 +#else +/* #undef HAVE_DIRENT_H */ +#endif /* Define to 1 if you have the header file. */ /* #undef HAVE_DLFCN_H */ -- 2.7.4