diff options
author | Robert Collins <rbtcollins@hotmail.com> | 2001-11-09 13:23:54 +0000 |
---|---|---|
committer | Robert Collins <rbtcollins@hotmail.com> | 2001-11-09 13:23:54 +0000 |
commit | 4d1fdcb6f84d37738f119273045278ca4fae4a91 (patch) | |
tree | 14e6f559067634c382b9c99b74defa213d01634a | |
parent | d0d69f141d71c421f3f6ad8cdb842003a556d626 (diff) | |
download | newlib-4d1fdcb6f84d37738f119273045278ca4fae4a91.zip newlib-4d1fdcb6f84d37738f119273045278ca4fae4a91.tar.gz newlib-4d1fdcb6f84d37738f119273045278ca4fae4a91.tar.bz2 |
2001-11-10 Robert Collins <rbtcollins@hotmail.com>
* include/winnt.h: Add Danny Smith's text comment about gcc compiler warnings
with _AUTHORITY #defines.
-rw-r--r-- | winsup/w32api/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/w32api/include/winnt.h | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog index b7a7239..9075a59 100644 --- a/winsup/w32api/ChangeLog +++ b/winsup/w32api/ChangeLog @@ -1,3 +1,8 @@ +2001-11-10 Robert Collins <rbtcollins@hotmail.com> + + * include/winnt.h: Add Danny Smith's text comment about gcc compiler warnings + with _AUTHORITY #defines. + 2001-11-09 Robert Collins <rbtcollins@hotmail.com> * include/winnt.h (GetCurrentFiber): Create a prototype before the implementation; diff --git a/winsup/w32api/include/winnt.h b/winsup/w32api/include/winnt.h index 345f446..b7c7229 100644 --- a/winsup/w32api/include/winnt.h +++ b/winsup/w32api/include/winnt.h @@ -267,6 +267,11 @@ typedef BYTE BOOLEAN,*PBOOLEAN; #define THREAD_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED|SYNCHRONIZE|0x3FF) #define EXCEPTION_NONCONTINUABLE 1 #define EXCEPTION_MAXIMUM_PARAMETERS 15 +/* + * To prevent gcc compiler warnings, bracket these defines when initialising + * a SID_IDENTIFIER_AUTHORITY, eg. + * SID_IDENTIFIER_AUTHORITY aNullSidAuthority = {SECURITY_NULL_SID_AUTHORITY}; + */ #define SECURITY_NULL_SID_AUTHORITY {0,0,0,0,0,0} #define SECURITY_WORLD_SID_AUTHORITY {0,0,0,0,0,1} #define SECURITY_LOCAL_SID_AUTHORITY {0,0,0,0,0,2} |