diff options
author | Michael Meskes | 2005-03-18 10:00:43 +0000 |
---|---|---|
committer | Michael Meskes | 2005-03-18 10:00:43 +0000 |
commit | 1f418555cf959e9761d965696304ce3bf239a943 (patch) | |
tree | c70c8f3388366389e1641047d5664d5ef23b83d9 /src/interfaces/ecpg/ecpglib/extern.h | |
parent | cef01c3355975bdc6724fbc226e85d55316162a3 (diff) |
Added patch by Christof Petig <[email protected]> to work around gcc bug on powerpc and amd64.
Diffstat (limited to 'src/interfaces/ecpg/ecpglib/extern.h')
-rw-r--r-- | src/interfaces/ecpg/ecpglib/extern.h | 5 |
1 files changed, 5 insertions, 0 deletions
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) */ |