summaryrefslogtreecommitdiff
path: root/m4/gnulib-common.m4
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2011-11-21 14:18:24 +0100
committerSimon Josefsson <simon@josefsson.org>2011-11-21 15:34:26 +0100
commit18eab914cd22f89774a6b84be6da39d78860dc91 (patch)
tree4a791a57a7394633c5b982e1b469c9a45752eb95 /m4/gnulib-common.m4
parent9d358453b7285330a77034c39ce6e74f90ed830f (diff)
downloadgnulib-18eab914cd22f89774a6b84be6da39d78860dc91.tar.gz
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.
Diffstat (limited to 'm4/gnulib-common.m4')
-rw-r--r--m4/gnulib-common.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/gnulib-common.m4 b/m4/gnulib-common.m4
index 7d83299959..8621dec2e3 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