]> git.eshelyaron.com Git - emacs.git/commitdiff
Define gnutls_rnd for WINDOWSNT and HAVE_GNUTLS3 case only
authorMartin Rudalics <rudalics@gmx.at>
Fri, 15 Sep 2017 07:48:54 +0000 (09:48 +0200)
committerMartin Rudalics <rudalics@gmx.at>
Fri, 15 Sep 2017 07:48:54 +0000 (09:48 +0200)
* src/fns.c (gnutls_rnd): Define for WINDOWSNT and HAVE_GNUTLS3
case only to avoid unused macros warning otherwise.

src/fns.c

index 13d235965e2cba416c5d1e72743b9d1dbe13d762..4524ff9b268dcc15e2ab19aebcc789602b5f8d17 100644 (file)
--- a/src/fns.c
+++ b/src/fns.c
@@ -37,7 +37,7 @@ along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>.  */
 #include "puresize.h"
 #include "gnutls.h"
 
-#ifdef WINDOWSNT
+#if defined WINDOWSNT && defined HAVE_GNUTLS3
 # define gnutls_rnd w32_gnutls_rnd
 #endif