Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Smith <dannysmith@users.sourceforge.net>2005-06-18 11:36:02 +0400
committerDanny Smith <dannysmith@users.sourceforge.net>2005-06-18 11:36:02 +0400
commit00110273cc28835d0b7ac79269ddbc60989ba39d (patch)
treee5b17c7c53e902de05e7b44eb90b2b0564f527da
parent91717fb80617f29725226c723a3c0c48d7126138 (diff)
* include/winbase.h (GolbalDiscard): Define as macro.
Thanks to: David Golub <david_golub at users dot sf dot net>
-rw-r--r--winsup/w32api/ChangeLog5
-rw-r--r--winsup/w32api/include/winbase.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog
index 99df2c99f..bba775318 100644
--- a/winsup/w32api/ChangeLog
+++ b/winsup/w32api/ChangeLog
@@ -1,3 +1,8 @@
+2005-06-18 Danny Smith <dannysmith@users.sourceforge.net>
+
+ * include/winbase.h (GolbalDiscard): Define as macro.
+ Thanks to: David Golub <david_golub at users dot sf dot net>
+
2005-05-13 Corinna Vinschen <corinna@vinschen.de>
* include/winnetwk.h (WNetGetResourceParentA): Add missing declaration.
diff --git a/winsup/w32api/include/winbase.h b/winsup/w32api/include/winbase.h
index 1963d444b..53f739dc1 100644
--- a/winsup/w32api/include/winbase.h
+++ b/winsup/w32api/include/winbase.h
@@ -1534,7 +1534,7 @@ WINBASEAPI ATOM WINAPI GlobalAddAtomW( LPCWSTR);
WINBASEAPI HGLOBAL WINAPI GlobalAlloc(UINT,DWORD);
WINBASEAPI SIZE_T WINAPI GlobalCompact(DWORD); /* Obsolete: Has no effect. */
WINBASEAPI ATOM WINAPI GlobalDeleteAtom(ATOM);
-WINBASEAPI HGLOBAL GlobalDiscard(HGLOBAL);
+#define GlobalDiscard(hMem) GlobalReAlloc((hMem), 0, GMEM_MOVEABLE)
WINBASEAPI ATOM WINAPI GlobalFindAtomA(LPCSTR);
WINBASEAPI ATOM WINAPI GlobalFindAtomW(LPCWSTR);
WINBASEAPI VOID WINAPI GlobalFix(HGLOBAL); /* Obsolete: Has no effect. */