add #ifdef for watcom standard header differences
This commit is contained in:
parent
b2b7c5c982
commit
5b7ae937ab
6
sysdep.h
6
sysdep.h
|
@ -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>
|
||||||
|
|
Reference in a new issue