]> mj.ucw.cz Git - pciutils.git/blobdiff - lib/sysdep.h
libpci: windows: Define ERROR_NOT_FOUND
[pciutils.git] / lib / sysdep.h
index c6c248eac740e8c7cd11c6612f1702d7feec34eb..bdeb34a193f9d6b22479dd5d58a6da3eb7afa4ff 100644 (file)
@@ -22,6 +22,11 @@ typedef u16 word;
 
 #ifdef PCI_OS_WINDOWS
 #define strcasecmp _strcmpi
+#define strncasecmp _strnicmp
+#if defined(_MSC_VER) && _MSC_VER < 1900
+#define snprintf _snprintf
+#define vsnprintf _vsnprintf
+#endif
 #endif
 
 #ifdef PCI_HAVE_LINUX_BYTEORDER_H
@@ -66,7 +71,6 @@ typedef u16 word;
   #define BIG_ENDIAN 4321
   #define LITTLE_ENDIAN        1234
   #define BYTE_ORDER LITTLE_ENDIAN
-  #define snprintf _snprintf
 #endif
 #endif