Fix building with recent djgpp2 gcc-6 version.

This commit is contained in:
Markus F.X.J. Oberhumer
2017-05-03 13:21:08 +02:00
parent 2e56fe82bb
commit 7ebed06393
11 changed files with 23 additions and 30 deletions
+5 -15
View File
@@ -587,24 +587,14 @@ extern "C" {
int dup(int fd) { UNUSED(fd); return -1; }
#endif
#if defined(__DJGPP__)
int _is_executable(const char *, int, const char *)
{
return 0;
}
#if (ACC_OS_DOS32) && defined(__DJGPP__)
//int _is_executable(const char *, int, const char *) { return 0; }
// FIXME: something wants to link in ctime.o
time_t XXX_mktime(struct tm *)
{
return 0;
}
//time_t mktime(struct tm *) { return 0; }
time_t time(time_t *t)
{
if (t) *t = 0;
return 0;
}
#endif /* __DJGPP__ */
//time_t time(time_t *t) { if (t) *t = 0; return 0; }
#endif
} // extern "C"