aboutsummaryrefslogtreecommitdiff
path: root/winsup/w32api
diff options
context:
space:
mode:
authorEarnie Boyd <earnie@users.sf.net>2003-07-11 11:56:00 +0000
committerEarnie Boyd <earnie@users.sf.net>2003-07-11 11:56:00 +0000
commit57552a73783b9f0f6d336d3f29873b2f7a8ab472 (patch)
treebd06b73bd58179c24f6b2d4331d91fb827384fae /winsup/w32api
parente47d5648355dba670df3abdf467c06b4f209a300 (diff)
downloadnewlib-57552a73783b9f0f6d336d3f29873b2f7a8ab472.zip
newlib-57552a73783b9f0f6d336d3f29873b2f7a8ab472.tar.gz
newlib-57552a73783b9f0f6d336d3f29873b2f7a8ab472.tar.bz2
* include/winnt.h (HANDLE): Define based on STRICT filter.
(THREAD_BASE_PRIORITY_MIN): Use parens around negative value. (THREAD_BASE_PRIOIRTY_IDLE): Ditto.
Diffstat (limited to 'winsup/w32api')
-rw-r--r--winsup/w32api/ChangeLog6
-rw-r--r--winsup/w32api/include/winnt.h7
2 files changed, 10 insertions, 3 deletions
diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog
index 55f871c..7b3c6be 100644
--- a/winsup/w32api/ChangeLog
+++ b/winsup/w32api/ChangeLog
@@ -1,3 +1,9 @@
+2003-07-11 Earnie Boyd <earnie@users.sf.net>
+
+ * include/winnt.h (HANDLE): Define based on STRICT filter.
+ (THREAD_BASE_PRIORITY_MIN): Use parens around negative value.
+ (THREAD_BASE_PRIOIRTY_IDLE): Ditto.
+
2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
* include/commctrl.h (NMTVDISPINFO[AW]): Replace obsolete struct
diff --git a/winsup/w32api/include/winnt.h b/winsup/w32api/include/winnt.h
index 4965295..93a4764 100644
--- a/winsup/w32api/include/winnt.h
+++ b/winsup/w32api/include/winnt.h
@@ -116,11 +116,12 @@ typedef const TCHAR *LPCTSTR;
#define TEXT(q) __TEXT(q)
typedef SHORT *PSHORT;
typedef LONG *PLONG;
-typedef void *HANDLE;
typedef HANDLE *PHANDLE,*LPHANDLE;
#ifdef STRICT
+typedef void *HANDLE;
#define DECLARE_HANDLE(n) typedef struct n##__{int i;}*n
#else
+typedef PVOID HANDLE;
#define DECLARE_HANDLE(n) typedef HANDLE n
#endif
typedef DWORD LCID;
@@ -289,8 +290,8 @@ typedef DWORD FLONG;
#define THREAD_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED|SYNCHRONIZE|0x3FF)
#define THREAD_BASE_PRIORITY_LOWRT 15
#define THREAD_BASE_PRIORITY_MAX 2
-#define THREAD_BASE_PRIORITY_MIN -2
-#define THREAD_BASE_PRIORITY_IDLE -15
+#define THREAD_BASE_PRIORITY_MIN (-2)
+#define THREAD_BASE_PRIORITY_IDLE (-15)
#define EXCEPTION_NONCONTINUABLE 1
#define EXCEPTION_MAXIMUM_PARAMETERS 15
#define MUTANT_QUERY_STATE 0x0001