Added support for Visual Studio 2015.

Fixed some WIN32 specific compile issues.
Changed MinGW build to use _NO_OLDNAMES so that it compatible with MSVC.
Thank you John LaFontaine for the contribution!
This commit is contained in:
skarg
2015-11-10 21:08:05 +00:00
parent 814bb171cd
commit ca5a9bff94
11 changed files with 806 additions and 4 deletions
+6
View File
@@ -50,6 +50,12 @@
/* include the device object */
#include "device.h" /* me */
#if defined(__BORLANDC__) || defined(_WIN32)
/* seems to not be defined in time.h as specified by The Open Group */
/* difference from UTC and local standard time */
long int timezone;
#endif
/* note: you really only need to define variables for
properties that are writable or that may change.
The properties that are constant can be hard coded
+3 -3
View File
@@ -75,9 +75,9 @@
#endif /* defined(BAC_UCI) */
#if defined(__BORLANDC__)
/* seems to not be defined in time.h as specified by The Open Group */
/* difference from UTC and local standard time */
#if defined(__BORLANDC__) || defined(_WIN32)
/* Not included in time.h as specified by The Open Group */
/* Difference from UTC and local standard time */
long int timezone;
#endif
+5 -1
View File
@@ -61,7 +61,7 @@
/* os specfic includes */
#include "timer.h"
#if defined(__BORLANDC__)
#if defined(__BORLANDC__) || defined(_WIN32)
/* seems to not be defined in time.h as specified by The Open Group */
/* difference from UTC and local standard time */
long int timezone;
@@ -79,8 +79,12 @@ bool Routed_Device_Write_Property_Local(
#if !defined(BAC_ROUTING)
#ifdef _MSC_VER
#pragma message This file should not be included in the build unless BAC_ROUTING is enabled.
#else
#warning This file should not be included in the build unless BAC_ROUTING is enabled.
#endif
#endif
/****************************************************************************
************* BACnet Routing Functionality (Optional) **********************