diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2017-05-23 05:43:32 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2017-05-23 05:43:32 +0300 |
commit | 1d9b00da83d88f353dd517bb8a763baf34d7c80f (patch) | |
tree | 90bc2a83e45f04e37ae33519098fc498279d9d77 /support/verify.h | |
parent | 76dd301e43e1d3bc93652704293dc71879513ce9 (diff) | |
parent | d3d50a55367f84182d21420121b504f898cda459 (diff) | |
download | egawk-1d9b00da83d88f353dd517bb8a763baf34d7c80f.tar.gz egawk-1d9b00da83d88f353dd517bb8a763baf34d7c80f.tar.bz2 egawk-1d9b00da83d88f353dd517bb8a763baf34d7c80f.zip |
Merge branch 'master' into feature/api-mpfr
Diffstat (limited to 'support/verify.h')
-rw-r--r-- | support/verify.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/support/verify.h b/support/verify.h index 5c8381d2..dcba9c8c 100644 --- a/support/verify.h +++ b/support/verify.h @@ -1,6 +1,6 @@ /* Compile-time assert-like macros. - Copyright (C) 2005-2006, 2009-2016 Free Software Foundation, Inc. + Copyright (C) 2005-2006, 2009-2017 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -248,7 +248,12 @@ template <int w> /* Verify requirement R at compile-time, as a declaration without a trailing ';'. */ -#define verify(R) _GL_VERIFY (R, "verify (" #R ")") +#ifdef __GNUC__ +# define verify(R) _GL_VERIFY (R, "verify (" #R ")") +#else +/* PGI barfs if R is long. Play it safe. */ +# define verify(R) _GL_VERIFY (R, "verify (...)") +#endif #ifndef __has_builtin # define __has_builtin(x) 0 |