From 18eab914cd22f89774a6b84be6da39d78860dc91 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Mon, 21 Nov 2011 14:18:24 +0100 Subject: [PATCH] gnulib-common: Silence warnings against config.h code. * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined before using it, in code that ends up in config.h. --- ChangeLog | 5 +++++ m4/gnulib-common.m4 | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d42125726..e7755877e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-11-21 Simon Josefsson + + * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined + before using it, in code that ends up in config.h. + 2011-11-20 Bruno Haible getcwd: Work around getcwd bug on AIX 5..7. diff --git a/m4/gnulib-common.m4 b/m4/gnulib-common.m4 index 7d8329995..8621dec2e 100644 --- a/m4/gnulib-common.m4 +++ b/m4/gnulib-common.m4 @@ -18,7 +18,7 @@ AC_DEFUN([gl_COMMON_BODY], [ # if (3 <= __GNUC__ || (__GNUC__ == 2 && 8 <= __GNUC_MINOR__) \ || 0x5110 <= __SUNPRO_C) # define _Noreturn __attribute__ ((__noreturn__)) -# elif 1200 <= _MSC_VER +# elif defined _MSC_VER && 1200 <= _MSC_VER # define _Noreturn __declspec (noreturn) # else # define _Noreturn -- 2.11.0