mirror of https://github.com/svaarala/duktape.git
Sami Vaarala
3 years ago
committed by
GitHub
6 changed files with 41 additions and 0 deletions
@ -0,0 +1,12 @@ |
|||
/* DJGPP (MSDOS), see https://sourceforge.net/p/predef/wiki/Compilers/ */ |
|||
#if defined(__DJGPP__) |
|||
#define DUK_F_DJGPP |
|||
#define DUK_F_DJGPP_MAJOR __DJGPP__ |
|||
#if defined(__DJGPP_MINOR__) |
|||
#define DUK_F_DJGPP_MINOR __DJGPP_MINOR__ |
|||
#else |
|||
#define DUK_F_DJGPP_MINOR 0 |
|||
#endif |
|||
#define DUK_F_DJGPP_PATCH 0 |
|||
#define DUK_F_DJGPP_VERSION (DUK_F_DJGPP_MAJOR * 10000L + DUK_F_DJGPP_MINOR * 100L + DUK_F_DJGPP_PATCH) |
|||
#endif |
@ -0,0 +1,3 @@ |
|||
#if defined(__MSDOS__) || defined(__MSDOS) || defined(MSDOS) |
|||
#define DUK_F_MSDOS |
|||
#endif |
@ -0,0 +1,19 @@ |
|||
#if defined(DUK_F_DJGPP) |
|||
/* These are for DJGPP, add #ifdefs for other MS-DOS compilers as needed. */ |
|||
#define DUK_USE_DATE_NOW_GETTIMEOFDAY |
|||
#define DUK_USE_DATE_TZO_GMTIME_R |
|||
#undef DUK_USE_DATE_PRS_STRPTIME /* Not supported, see: https://github.com/svaarala/duktape/issues/2472 */ |
|||
#define DUK_USE_DATE_FMT_STRFTIME |
|||
#include <time.h> |
|||
#include <sys/time.h> |
|||
#else |
|||
/* Placeholder, unlikely to work outside of DJGPP. */ |
|||
#define DUK_USE_DATE_NOW_GETTIMEOFDAY |
|||
#define DUK_USE_DATE_TZO_GMTIME_R |
|||
#undef DUK_USE_DATE_PRS_STRPTIME |
|||
#define DUK_USE_DATE_FMT_STRFTIME |
|||
#include <time.h> |
|||
#include <sys/time.h> |
|||
#endif |
|||
|
|||
#define DUK_USE_OS_STRING "msdos" |
Loading…
Reference in new issue