# undef __POSIX_2008_DEPRECATED
# define __POSIX_2008_DEPRECATED
# endif
+/* Old versions of MinGW don't have these in the w32api headers, and
+ Gnulib uses them in some files. */
+# ifndef _WIN32_WINNT_WIN2K
+# define _WIN32_WINNT_WIN2K 0x0500
+# endif
+# ifndef _WIN32_WINNT_WINXP
+# define _WIN32_WINNT_WINXP 0x0501
+# endif
+# ifndef _WIN32_WINNT_WS03
+# define _WIN32_WINNT_WS03 0x0502
+# endif
+# ifndef _WIN32_WINNT_VISTA
+# define _WIN32_WINNT_VISTA 0x0600
+# endif
+# ifndef _WIN32_WINNT_WIN7
+# define _WIN32_WINNT_WIN7 0x0601
+# endif
+# ifndef _WIN32_WINNT_WIN8
+# define _WIN32_WINNT_WIN8 0x0602
+# endif
+# ifndef _WIN32_WINNT_WINBLUE
+# define _WIN32_WINNT_WINBLUE 0x0603
+# endif
+# ifndef _WIN32_WINNT_WIN10
+# define _WIN32_WINNT_WIN10 0x0A00
+# endif
#endif
/* #undef const */