Commit 414a4969 authored by Eli Zaretskii's avatar Eli Zaretskii

Avoid gettimeofday deprecation warnings with MinGW

* nt/inc/ms-w32.h (__POSIX_2008_DEPRECATED)
[__MINGW32_VERSION >= 5001000L]: Define to nothing, to avoid
deprecation warnings about gettimeofday with mingw.org's MinGW
runtime 5.1 and later.
parent d7052cf3
......@@ -34,6 +34,11 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
# ifdef __MINGW64_VERSION_MAJOR
# define MINGW_W64
# endif
# if defined __MINGW32_VERSION && __MINGW32_VERSION >= 5001000L
/* Avoid warnings about gettimeofday being deprecated. */
# undef __POSIX_2008_DEPRECATED
# define __POSIX_2008_DEPRECATED
# endif
#endif
/* #undef const */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment