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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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) **********************
|
||||
|
||||
Reference in New Issue
Block a user