From fc80f5fe73f6772077493f20b41966d6fe7c957f Mon Sep 17 00:00:00 2001 From: Michael Meskes Date: Fri, 18 Mar 2005 10:01:14 +0000 Subject: Added patch by Christof Petig to work around gcc bug on powerpc and amd64. --- src/interfaces/ecpg/ecpglib/extern.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/interfaces/ecpg/ecpglib/extern.h') diff --git a/src/interfaces/ecpg/ecpglib/extern.h b/src/interfaces/ecpg/ecpglib/extern.h index 8a04ad0aaf1..846e205d281 100644 --- a/src/interfaces/ecpg/ecpglib/extern.h +++ b/src/interfaces/ecpg/ecpglib/extern.h @@ -125,7 +125,12 @@ PGresult **ECPGdescriptor_lvalue(int line, const char *descriptor); bool ECPGstore_result(const PGresult *results, int act_field, const struct statement * stmt, struct variable * var); bool ECPGstore_input(const int, const bool, const struct variable *, const char **, bool *); +#if defined(__GNUC__) && (defined (__powerpc__) || defined(__AMD64__)) + // work around a gcc/ABI bug with va_lists on ppc+amd64 +void ECPGget_variable(va_list, enum ECPGttype, struct variable *, bool); +#else void ECPGget_variable(va_list *, enum ECPGttype, struct variable *, bool); +#endif /* SQLSTATE values generated or processed by ecpglib (intentionally * not exported -- users should refer to the codes directly) */ -- cgit v1.2.3