emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 414a496: Avoid gettimeofday deprecation warnings wi


From: Eli Zaretskii
Subject: [Emacs-diffs] master 414a496: Avoid gettimeofday deprecation warnings with MinGW
Date: Sun, 29 Jul 2018 13:07:58 -0400 (EDT)

branch: master
commit 414a4969b98fabd1598933d48aea4c5f19db7a7f
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    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.
---
 nt/inc/ms-w32.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/nt/inc/ms-w32.h b/nt/inc/ms-w32.h
index d15b6da..e4dec04 100644
--- a/nt/inc/ms-w32.h
+++ b/nt/inc/ms-w32.h
@@ -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 */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]