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
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue