]> mj.ucw.cz Git - pciutils.git/blobdiff - lib/types.h
More Windows stuff.
[pciutils.git] / lib / types.h
index 807bf378a5de2d330f1d8273880ae425e035e10e..0b55feb3d081480316d8512f4eeda8afa625477d 100644 (file)
 #ifndef PCI_HAVE_Uxx_TYPES
 
 #ifdef PCI_OS_WINDOWS
-typedef unsigned char byte;
-typedef char u8;
-typedef unsigned short word;
-typedef short u16;
-typedef unsigned long u32;
+typedef unsigned __int8 u8;
+typedef unsigned __int16 u16;
+typedef unsigned __int32 u32;
 #else
-typedef u_int8_t byte;
 typedef u_int8_t u8;
-typedef u_int16_t word;
 typedef u_int16_t u16;
 typedef u_int32_t u32;
 #endif
 
+typedef u8 byte;
+typedef u16 word;
+
 #ifdef PCI_HAVE_64BIT_ADDRESS
 #include <limits.h>
 #if ULONG_MAX > 0xffffffff