]> mj.ucw.cz Git - pciutils.git/blobdiff - lib/sysdep.h
libpci: windows: Define ERROR_NOT_FOUND
[pciutils.git] / lib / sysdep.h
index 462fd355cf7b6c04a93fbe5c13f0d1fc4c770eda..bdeb34a193f9d6b22479dd5d58a6da3eb7afa4ff 100644 (file)
@@ -22,7 +22,9 @@ 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
@@ -69,7 +71,6 @@ typedef u16 word;
   #define BIG_ENDIAN 4321
   #define LITTLE_ENDIAN        1234
   #define BYTE_ORDER LITTLE_ENDIAN
-  #define snprintf _snprintf
 #endif
 #endif