annotate Framework/PostgreSQL/PostgreSQLIncludes.h @ 103:9263b3de37ed

fix build on Debian Buster
author jodogne
date Tue, 22 Jan 2019 13:14:52 +0000
parents
children 57c0138d456e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
103
9263b3de37ed fix build on Debian Buster
jodogne
parents:
diff changeset
1 /**
9263b3de37ed fix build on Debian Buster
jodogne
parents:
diff changeset
2 * Orthanc - A Lightweight, RESTful DICOM Store
9263b3de37ed fix build on Debian Buster
jodogne
parents:
diff changeset
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
9263b3de37ed fix build on Debian Buster
jodogne
parents:
diff changeset
4 * Department, University Hospital of Liege, Belgium
9263b3de37ed fix build on Debian Buster
jodogne
parents:
diff changeset
5 * Copyright (C) 2017-2019 Osimis S.A., Belgium
9263b3de37ed fix build on Debian Buster
jodogne
parents:
diff changeset
6 *
9263b3de37ed fix build on Debian Buster
jodogne
parents:
diff changeset
7 * This program is free software: you can redistribute it and/or
9263b3de37ed fix build on Debian Buster
jodogne
parents:
diff changeset
8 * modify it under the terms of the GNU Affero General Public License
9263b3de37ed fix build on Debian Buster
jodogne
parents:
diff changeset
9 * as published by the Free Software Foundation, either version 3 of
9263b3de37ed fix build on Debian Buster
jodogne
parents:
diff changeset
10 * the License, or (at your option) any later version.
9263b3de37ed fix build on Debian Buster
jodogne
parents:
diff changeset
11 *
9263b3de37ed fix build on Debian Buster
jodogne
parents:
diff changeset
12 * This program is distributed in the hope that it will be useful, but
9263b3de37ed fix build on Debian Buster
jodogne
parents:
diff changeset
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
9263b3de37ed fix build on Debian Buster
jodogne
parents:
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9263b3de37ed fix build on Debian Buster
jodogne
parents:
diff changeset
15 * Affero General Public License for more details.
9263b3de37ed fix build on Debian Buster
jodogne
parents:
diff changeset
16 *
9263b3de37ed fix build on Debian Buster
jodogne
parents:
diff changeset
17 * You should have received a copy of the GNU Affero General Public License
9263b3de37ed fix build on Debian Buster
jodogne
parents:
diff changeset
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
9263b3de37ed fix build on Debian Buster
jodogne
parents:
diff changeset
19 **/
9263b3de37ed fix build on Debian Buster
jodogne
parents:
diff changeset
20
9263b3de37ed fix build on Debian Buster
jodogne
parents:
diff changeset
21
9263b3de37ed fix build on Debian Buster
jodogne
parents:
diff changeset
22 #pragma once
9263b3de37ed fix build on Debian Buster
jodogne
parents:
diff changeset
23
9263b3de37ed fix build on Debian Buster
jodogne
parents:
diff changeset
24 // PostgreSQL includes
9263b3de37ed fix build on Debian Buster
jodogne
parents:
diff changeset
25 #include <pg_config.h>
9263b3de37ed fix build on Debian Buster
jodogne
parents:
diff changeset
26
9263b3de37ed fix build on Debian Buster
jodogne
parents:
diff changeset
27 #if PG_VERSION_NUM >= 110000
9263b3de37ed fix build on Debian Buster
jodogne
parents:
diff changeset
28 # include <postgres.h>
9263b3de37ed fix build on Debian Buster
jodogne
parents:
diff changeset
29 # undef LOG // This one comes from <postgres.h>, and conflicts with <Core/Logging.h>
9263b3de37ed fix build on Debian Buster
jodogne
parents:
diff changeset
30 #endif
9263b3de37ed fix build on Debian Buster
jodogne
parents:
diff changeset
31
9263b3de37ed fix build on Debian Buster
jodogne
parents:
diff changeset
32 #include <libpq-fe.h>
9263b3de37ed fix build on Debian Buster
jodogne
parents:
diff changeset
33 #include <c.h>
9263b3de37ed fix build on Debian Buster
jodogne
parents:
diff changeset
34 #include <catalog/pg_type.h>