Fixed compile errors for Borland compiler.

This commit is contained in:
skarg
2011-08-23 21:05:34 +00:00
parent 8b9c531b9f
commit ed7ba53b08
2 changed files with 11 additions and 2 deletions
+8 -1
View File
@@ -37,7 +37,7 @@
/* Offset between Windows epoch 1/1/1601 and
Unix epoch 1/1/1970 in 100 nanosec units */
#if defined(_MSC_VER) || defined(_MSC_EXTENSIONS)
#if defined(_MSC_VER) || defined(_MSC_EXTENSIONS) || defined(__BORLANDC__)
#define DELTA_EPOCH_IN_MICROSECS 11644473600000000Ui64
#else
#define DELTA_EPOCH_IN_MICROSECS 11644473600000000ULL
@@ -49,6 +49,13 @@ static volatile uint32_t Millisecond_Counter[MAX_MILLISECOND_TIMERS];
/* Windows timer period - in milliseconds */
static uint32_t Timer_Period = 1;
#if defined(__BORLANDC__)
struct timezone {
int tz_minuteswest; /* minutes W of Greenwich */
int tz_dsttime; /* type of dst correction */
};
#endif
/*************************************************************************
* Description: simulate the gettimeofday Linux function
* Returns: zero