From 30db525521038c9ad8a141277d635be84f19bfba Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Fri, 12 Feb 2016 08:06:04 +0000 Subject: [PATCH] Fix compilation on visual studio Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3966 --- src/dos/dos_programs.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/dos/dos_programs.cpp b/src/dos/dos_programs.cpp index 4086b167..0b9efbe0 100644 --- a/src/dos/dos_programs.cpp +++ b/src/dos/dos_programs.cpp @@ -46,6 +46,12 @@ #include "os2.h" #endif +#if defined(WIN32) +#ifndef S_ISDIR +#define S_ISDIR(m) (((m)&S_IFMT)==S_IFDIR) +#endif +#endif + #if C_DEBUG Bitu DEBUG_EnableDebugger(void); #endif