diff options
author | Andres Freund <andres@anarazel.de> | 2018-08-24 10:41:45 -0700 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2018-08-24 10:41:45 -0700 |
commit | 8ecdefc261abbd35d6280cdd8fd749e83c3fd199 (patch) | |
tree | 3c10a717339808e8741c05dca6796d2a614dd1e1 /config/c-compiler.m4 | |
parent | cb92520563834577d3afbbedcc0df4ee0aac3445 (diff) | |
download | postgresql-8ecdefc261abbd35d6280cdd8fd749e83c3fd199.tar.gz postgresql-8ecdefc261abbd35d6280cdd8fd749e83c3fd199.zip |
Remove test for VA_ARGS, implied by C99.
This simplifies logic / reduces duplication in a few headers.
Author: Andres Freund
Discussion: https://postgr.es/m/97d4b165-192d-3605-749c-f614a0c4e783@2ndquadrant.com
Diffstat (limited to 'config/c-compiler.m4')
-rw-r--r-- | config/c-compiler.m4 | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/config/c-compiler.m4 b/config/c-compiler.m4 index 67675a31bb6..eedaf12d69c 100644 --- a/config/c-compiler.m4 +++ b/config/c-compiler.m4 @@ -415,25 +415,6 @@ fi])# PGAC_C_COMPUTED_GOTO -# PGAC_C_VA_ARGS -# -------------- -# Check if the C compiler understands C99-style variadic macros, -# and define HAVE__VA_ARGS if so. -AC_DEFUN([PGAC_C_VA_ARGS], -[AC_CACHE_CHECK(for __VA_ARGS__, pgac_cv__va_args, -[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <stdio.h>], -[#define debug(...) fprintf(stderr, __VA_ARGS__) -debug("%s", "blarg"); -])], -[pgac_cv__va_args=yes], -[pgac_cv__va_args=no])]) -if test x"$pgac_cv__va_args" = xyes ; then -AC_DEFINE(HAVE__VA_ARGS, 1, - [Define to 1 if your compiler understands __VA_ARGS__ in macros.]) -fi])# PGAC_C_VA_ARGS - - - # PGAC_PROG_VARCC_VARFLAGS_OPT # ----------------------- # Given a compiler, variable name and a string, check if the compiler |