gnulib-common: Silence warnings against config.h code.
authorSimon Josefsson <simon@josefsson.org>
Mon, 21 Nov 2011 13:18:24 +0000 (14:18 +0100)
committerSimon Josefsson <simon@josefsson.org>
Mon, 21 Nov 2011 14:34:26 +0000 (15:34 +0100)
* m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
before using it, in code that ends up in config.h.

ChangeLog
m4/gnulib-common.m4

index d421257..e775587 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-11-21  Simon Josefsson  <simon@josefsson.org>
+
+       * 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  <bruno@clisp.org>
 
        getcwd: Work around getcwd bug on AIX 5..7.
index 7d83299..8621dec 100644 (file)
@@ -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