mtconnect / adapter

MTConnect adapter framework
90 stars 76 forks source link

Fixed build errors for VS2015+ #8

Open gioamato opened 6 years ago

gioamato commented 6 years ago

Since, snprintf() is now officially supported. We should never #define it. Doing it will overshadow new snprintf() function defined in stdio.h.

To restrict that, this is added in stdio.h:

ifdef snprintf

error: Macro definition of snprintf conflicts with Standard Library function declaration”

endif

Hence, the code doesn't compile.