]> git.proxmox.com Git - mirror_smartmontools-debian.git/blobdiff - csmisas.h
Imported Upstream version 6.1+svn3812
[mirror_smartmontools-debian.git] / csmisas.h
index 087fa780c0a3fda5ae1f5519a8b0c0d87991a0a0..3e5aa213763e8981c209841d22f2fa768ca7bfd0 100644 (file)
--- a/csmisas.h
+++ b/csmisas.h
@@ -236,7 +236,11 @@ typedef struct _IOCTL_HEADER {
 
 #define __u8    unsigned char
 #define __u16   unsigned short
+#ifndef __LP64__  // ILP32 (32-bit), LLP64 (64-bit MSVC, MinGW)
 #define __u32   unsigned long
+#else             // LP64 (64-bit Cygwin)
+#define __u32   unsigned int
+#endif
 #define __u64   unsigned __int64
 
 #define __i8    char