+2017-06-06 Keith Marshall <keithmarshall@users.sourceforge.net>
+
+ Make <winuser.h> header effectively self-contained.
+
+ * include/winuser.h (stdarg.h): Include it, in addition to...
+ [NOGDI] (windef.h): ...this, directly or otherwise indirectly via...
+ [!NOGDI] (wingdi.h): ...this, for effective self-containment.
+
2017-06-04 Keith Marshall <keithmarshall@users.sourceforge.net>
Consolidate <wingdi.h> version specific conditionals.
* $Id$
*
* Written by Anders Norlander <anorland@hem2.passagen.se>
- * Copyright (C) 1998-2012, 2016, MinGW.org Project
+ * Copyright (C) 1998-2012, 2016, 2017, MinGW.org Project
*
*
* Permission is hereby granted, free of charge, to any person obtaining a
*/
#define __WINUSER_H_SOURCED__
+/* To make <winuser.h> effectively self-contained, we require definitions
+ * from <windef.h>, possibly <wingdi.h>, (which also requires <windef.h>),
+ * and <stdarg.h>
+ */
+#ifdef NOGDI
+#include <windef.h>
+#else
+#include <wingdi.h>
+#endif
+#include <stdarg.h>
+
_BEGIN_C_DECLS
#ifndef WINUSERAPI