mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
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
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user