Re: Warnings triggered by recent includefile cleanups
От | Peter Eisentraut |
---|---|
Тема | Re: Warnings triggered by recent includefile cleanups |
Дата | |
Msg-id | Pine.LNX.4.21.0007190132550.1545-100000@localhost.localdomain обсуждение исходный текст |
Ответ на | Re: Warnings triggered by recent includefile cleanups (Tom Lane <tgl@sss.pgh.pa.us>) |
Список | pgsql-hackers |
Tom Lane writes: > @@ -55,6 +55,13 @@ > #include "postgres.h" > #ifdef HAVE_LIMITS_H > #include <limits.h> > +#ifndef MAXINT > +#define MAXINT INT_MAX > +#endif > +#else > +#ifdef HAVE_VALUES_H > +#include <values.h> > +#endif > #endif > #include "fmgr.h" > #include "utils/builtins.h" > > was dead code when it was installed. The CVS log says > values.h patch from Alex Howansky He claimed that the compilation failed for him in the files src/backend/optimizer/path/costsize.c src/backend/utils/adt/date.c src/backend/utils/adt/float.c because MAXINT was undefined (although neither date.c nor float.c used MAXINT at all in 6.5). This problem is gone and one should use INT_MAX anyway. -- Peter Eisentraut Sernanders väg 10:115 peter_e@gmx.net 75262 Uppsala http://yi.org/peter-e/ Sweden
В списке pgsql-hackers по дате отправления: