]> mj.ucw.cz Git - pciutils.git/blobdiff - lib/sysdep.h
Squashed compiler warnings about code with no effect
[pciutils.git] / lib / sysdep.h
index 70a407aeb60b47a7af04449ad211f11548d74b6c..2a25c9356c2d70aefcab357d92fd2d93764e70f4 100644 (file)
 #define inline
 #endif
 
+typedef u8 byte;
+typedef u16 word;
+
+#ifdef PCI_OS_WINDOWS
+#define strcasecmp strcmpi
+#endif
+
 #ifdef PCI_HAVE_LINUX_BYTEORDER_H
 
 #include <asm/byteorder.h>
 #endif
 
 #ifdef PCI_OS_WINDOWS
-#include <sys/param.h>
+#ifdef __MINGW32__
+  #include <sys/param.h>
+#else
+  #include <io.h>
+  #define BIG_ENDIAN 4321
+  #define LITTLE_ENDIAN        1234
+  #define BYTE_ORDER LITTLE_ENDIAN
+  #define snprintf _snprintf
+#endif
 #endif
 
 #if BYTE_ORDER == BIG_ENDIAN