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 /winsup/w32api/include/winbase.h
parent91717fb80617f29725226c723a3c0c48d7126138 (diff)
* include/winbase.h (GolbalDiscard): Define as macro.
Thanks to: David Golub <david_golub at users dot sf dot net>
Diffstat (limited to 'winsup/w32api/include/winbase.h')
-rw-r--r--winsup/w32api/include/winbase.h2
1 files changed, 1 insertions, 1 deletions
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. */