From 5201de4ff2e4f236c5cf2be064aa506e376b80cb Mon Sep 17 00:00:00 2001 From: James Haley Date: Sun, 30 Jan 2011 04:10:32 +0000 Subject: Add win_opendir.c module for MSVC++ builds which contains public domain implementation of POSIX opendir/readdir/closedir API derived from the MinGW libc extensions source. Will be needed for hub save maintenance. Subversion-branch: /branches/strife-branch Subversion-revision: 2241 --- src/strife/m_saves.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src') diff --git a/src/strife/m_saves.c b/src/strife/m_saves.c index bec0fede..f845598e 100644 --- a/src/strife/m_saves.c +++ b/src/strife/m_saves.c @@ -28,6 +28,16 @@ // //----------------------------------------------------------------------------- +// For GNU C and POSIX targets, dirent.h should be available. Otherwise, for +// Visual C++, we need to include the win_opendir module. +#if defined(_MSC_VER) +#include +#elif defined(__GNUC__) || defined(POSIX) +#include +#else +#error Need an include for dirent.h! +#endif + #include "z_zone.h" #include "i_system.h" #include "d_player.h" -- cgit v1.2.3