libpq-example.html needs to use <> includes
libpq-example.html needs to use <> includes
От:
Josh Berkus <josh@agliodbs.com>
Дата:
All, The libpq-example is using local includes for libpq-fe, instead of library includes: #include "libpq-fe.h" I can't think of a single good reason for this, is there one? --Josh Berkus
Re: libpq-example.html needs to use <> includes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
Josh Berkus wrote: > All, > > The libpq-example is using local includes for libpq-fe, instead of > library includes: > > #include "libpq-fe.h" > > I can't think of a single good reason for this, is there one? Agreed, fixed with the attached, applied patch. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com PG East: http://www.enterprisedb.com/community/nav-pg-east-2010.do + If your life is a hard drive, Christ can be your backup. + Index: doc/src/sgml/libpq.sgml =================================================================== RCS file: /cvsroot/pgsql/doc/src/sgml/libpq.sgml,v retrieving revision 1.302 diff -c -c -r1.302 libpq.sgml *** doc/src/sgml/libpq.sgml 24 Feb 2010 15:54:31 -0000 1.302 --- doc/src/sgml/libpq.sgml 27 Feb 2010 03:40:36 -0000 *************** *** 7010,7016 **** */ #include #include ! #include "libpq-fe.h" static void exit_nicely(PGconn *conn) --- 7010,7016 ---- */ #include #include ! #include static void exit_nicely(PGconn *conn) *************** *** 7158,7164 **** #include #include #include ! #include "libpq-fe.h" static void exit_nicely(PGconn *conn) --- 7158,7164 ---- #include #include #include ! #include static void exit_nicely(PGconn *conn) *************** *** 7296,7302 **** #include #include #include ! #include "libpq-fe.h" /* for ntohl/htonl */ #include --- 7296,7302 ---- #include #include #include ! #include /* for ntohl/htonl */ #include