Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 8a79451

Browse files
committed
I have to admit that I got the case of the preprocessor symbol on amd64
wrong. __AMD64__ is not defined, __amd64__ is. Christof Petig
1 parent af87567 commit 8a79451

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/interfaces/ecpg/ecpglib/execute.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/execute.c,v 1.41 2005/07/02 17:01:53 momjian Exp $ */
1+
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/execute.c,v 1.42 2005/07/04 19:05:45 momjian Exp $ */
22

33
/*
44
* The aim is to get a simpler inteface to the database routines.
@@ -63,7 +63,7 @@ quote_postgres(char *arg, int lineno)
6363
return res;
6464
}
6565

66-
#if defined(__GNUC__) && (defined (__powerpc__) || defined(__AMD64__) || defined(__x86_64__))
66+
#if defined(__GNUC__) && (defined (__powerpc__) || defined(__amd64__) || defined(__x86_64__))
6767
#define APREF ap
6868
#else
6969
#define APREF *ap
@@ -171,7 +171,7 @@ create_statement(int lineno, int compat, int force_indicator, struct connection
171171
if (!(var = (struct variable *) ECPGalloc(sizeof(struct variable), lineno)))
172172
return false;
173173

174-
#if defined(__GNUC__) && (defined (__powerpc__) || defined(__AMD64__) || defined(__x86_64__))
174+
#if defined(__GNUC__) && (defined (__powerpc__) || defined(__amd64__) || defined(__x86_64__))
175175
ECPGget_variable(ap, type, var, true);
176176
#else
177177
ECPGget_variable(&ap, type, var, true);

src/interfaces/ecpg/ecpglib/extern.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ PGresult **ECPGdescriptor_lvalue(int line, const char *descriptor);
125125
bool ECPGstore_result(const PGresult *results, int act_field,
126126
const struct statement * stmt, struct variable * var);
127127
bool ECPGstore_input(const int, const bool, const struct variable *, const char **, bool *);
128-
#if defined(__GNUC__) && (defined (__powerpc__) || defined(__AMD64__) || defined(__x86_64__))
128+
#if defined(__GNUC__) && (defined (__powerpc__) || defined(__amd64__) || defined(__x86_64__))
129129
// work around a gcc/ABI bug with va_lists on ppc+amd64
130130
void ECPGget_variable(va_list, enum ECPGttype, struct variable *, bool);
131131
#else

0 commit comments

Comments
 (0)