This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH] tweak SYSTEM_LUID in winnt.h


Hi,

the change of the definition of LARGE_INTEGER in winnt.h causes a
compiler warning when the SYSTEM_LUID macro is used. I changed
the definition of SYSTEM_LUID to comply with the new definition of
LARGE_INTEGER:

Index: include/winnt.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/winnt.h,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -p -r1.26 -r1.27
--- winnt.h     2001/08/30 04:29:48     1.26
+++ winnt.h     2001/08/31 19:48:04     1.27
@@ -1075,7 +1075,7 @@ typedef struct _GUID {
        unsigned short Data3;
        unsigned char  Data4[8];
 } GUID, *REFGUID, *LPGUID;
-#define SYSTEM_LUID { 999 }
+#define SYSTEM_LUID { QuadPart:999 }
 #endif /* _GUID_DEFINED */
 typedef struct _GENERIC_MAPPING {
        ACCESS_MASK GenericRead;

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]