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
+3 -1
View File
@@ -74,7 +74,8 @@ CORE3_SRC = $(BACNET_CORE)\arf.c \
$(BACNET_CORE)\timesync.c \
$(BACNET_CORE)\whohas.c \
$(BACNET_CORE)\whois.c \
$(BACNET_CORE)\wp.c
$(BACNET_CORE)\wp.c \
$(BACNET_CORE)\wpm.c
CORE4_SRC = $(BACNET_CORE)\bacdevobjpropref.c \
$(BACNET_CORE)\bacpropstates.c \
@@ -96,6 +97,7 @@ HANDLER_SRC = \
$(BACNET_HANDLER)\h_rpm.c \
$(BACNET_HANDLER)\h_rpm_a.c \
$(BACNET_HANDLER)\h_wp.c \
$(BACNET_HANDLER)\h_wpm.c \
$(BACNET_HANDLER)\h_arf.c \
$(BACNET_HANDLER)\h_arf_a.c \
$(BACNET_HANDLER)\h_awf.c \
+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