snprintf() macro is not endian specific and therefore should be declared
outside of the endian section.
This also fixes snprintf() function for new MinGW-w64 toolchains where
snprintf() is defined as wrapper around _snprintf() which do not return
negative value on overflow. libpci would call MinGW-w64 patched snprintf()
function and not broken system function _snprintf().
#ifdef PCI_OS_WINDOWS
#define strcasecmp _strcmpi
#if defined(_MSC_VER) && _MSC_VER < 1900
+#define snprintf _snprintf
#define vsnprintf _vsnprintf
#endif
#endif
#define BIG_ENDIAN 4321
#define LITTLE_ENDIAN 1234
#define BYTE_ORDER LITTLE_ENDIAN
- #define snprintf _snprintf
#endif
#endif