add #ifdef for watcom standard header differences

This commit is contained in:
Gered 2019-03-31 16:34:32 -04:00
parent b2b7c5c982
commit 5b7ae937ab

View file

@ -42,13 +42,17 @@
# error Target not supported. # error Target not supported.
#endif #endif
#if defined(UNIX) || defined(DJGPP) #if defined(UNIX) || defined(DJGPP) || defined(WATCOM)
# define USE_DIRENT # define USE_DIRENT
#endif #endif
#if defined(USE_DIRENT) // also needs fnmatch #if defined(USE_DIRENT) // also needs fnmatch
#ifdef WATCOM
# include <direct.h>
#else
# include <dirent.h> # include <dirent.h>
#endif #endif
#endif
#if defined(UNIX) #if defined(UNIX)
# include <unistd.h> # include <unistd.h>