]> mj.ucw.cz Git - pciutils.git/blobdiff - lib/sysdep.h
cxl: Rename caps to be device caps
[pciutils.git] / lib / sysdep.h
index 1a5cb16c82df9b6c1a8f0ccb22db22313e0f9fdf..bdeb34a193f9d6b22479dd5d58a6da3eb7afa4ff 100644 (file)
@@ -21,7 +21,12 @@ typedef u8 byte;
 typedef u16 word;
 
 #ifdef PCI_OS_WINDOWS
-#define strcasecmp strcmpi
+#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