]> mj.ucw.cz Git - pciutils.git/blobdiff - lib/sysdep.h
More Windows stuff.
[pciutils.git] / lib / sysdep.h
index 70a407aeb60b47a7af04449ad211f11548d74b6c..a599686efced00a4c53ef2dacd7610d963627023 100644 (file)
 #define inline
 #endif
 
+#ifdef PCI_OS_WINDOWS
+#define bzero(x,y) memset(x,0,y)
+#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