OSDN Git Service

Resolve MinGW-Bug [#2350]
authorKeith Marshall <keithmarshall@users.sourceforge.net>
Mon, 28 Aug 2017 10:07:38 +0000 (11:07 +0100)
committerKeith Marshall <keithmarshall@users.sourceforge.net>
Mon, 28 Aug 2017 10:07:38 +0000 (11:07 +0100)
w32api/ChangeLog
w32api/include/winuser.h

index b63a760..69787fa 100644 (file)
@@ -1,3 +1,11 @@
+2017-08-28  Keith Marshall  <keithmarshall@users.sourceforge.net>
+
+       Resolve MinGW-Bug [#2350]
+
+       * include/winuser.h (GetTitleBarInfo): Move prototype after...
+       (PTITLEBARINFO): ...this type definition; it is used as a function
+       argument type, so must be defined beforehand.
+
 2017-08-21  Keith Marshall  <keithmarshall@users.sourceforge.net>
 
        Extend testsuite to cover winsock fd_set macro operations.
index 6a18beb..6939e6a 100644 (file)
@@ -3916,10 +3916,6 @@ WINUSERAPI DWORD WINAPI GetListBoxInfo (HWND);
 WINUSERAPI BOOL WINAPI GetMenuBarInfo (HWND, LONG, LONG, PMENUBARINFO);
 WINUSERAPI BOOL WINAPI GetMenuInfo (HMENU, LPMENUINFO);
 
-#if _WIN32_WINDOWS >= _WIN32_WINDOWS_98
-WINUSERAPI BOOL WINAPI GetTitleBarInfo (HWND, PTITLEBARINFO);
-#endif
-
 WINUSERAPI BOOL WINAPI GetWindowInfo (HWND, PWINDOWINFO);
 WINUSERAPI BOOL WINAPI GetScrollBarInfo (HWND, LONG, PSCROLLBARINFO);
 
@@ -4416,6 +4412,7 @@ typedef struct tagTITLEBARINFO
   DWORD                        rgstate[CCHILDREN_TITLEBAR+1];
 } TITLEBARINFO, *PTITLEBARINFO, *LPTITLEBARINFO;
 
+WINUSERAPI BOOL WINAPI GetTitleBarInfo (HWND, PTITLEBARINFO);
 #endif /* WINDOWS >= Win98 */
 
 WINUSERAPI BOOL WINAPI BlockInput(BOOL);