mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-02-05 20:43:08 +00:00
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.
This commit is contained in:
parent
d7052cf393
commit
414a4969b9
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user