OSDN Git Service

Make <winuser.h> header effectively self-contained.
authorKeith Marshall <keithmarshall@users.sourceforge.net>
Tue, 6 Jun 2017 19:25:36 +0000 (20:25 +0100)
committerKeith Marshall <keithmarshall@users.sourceforge.net>
Tue, 6 Jun 2017 19:25:36 +0000 (20:25 +0100)
w32api/ChangeLog
w32api/include/winuser.h

index dac6a9f..b682fc6 100644 (file)
@@ -1,3 +1,11 @@
+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.
index c6714a1..bfb1f9d 100644 (file)
@@ -7,7 +7,7 @@
  * $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