diff options
author | David Kalnischkies <david@kalnischkies.de> | 2022-04-22 17:05:36 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2022-05-07 10:45:44 +0200 |
commit | 320245536a7ad21606286d9dcf54acf3bdf096c6 (patch) | |
tree | 839e81d85af6e50e8e8217717e160f41f0946ba1 /apt-private/private-json-hooks.cc | |
parent | e5aa5c04ecbd3cdab611794cebf9eb3aa8cbddd4 (diff) |
Include our config.h in all C++ files to avoid ODR violations
Some of our headers use APT_COMPILING_APT trickery to avoid exposing too
broadly details we don't want external clients to know and make use of.
The flip-side is that this can lead to different compilation units
seeing different definitions if they aren't all using the same config.
Diffstat (limited to 'apt-private/private-json-hooks.cc')
-rw-r--r-- | apt-private/private-json-hooks.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apt-private/private-json-hooks.cc b/apt-private/private-json-hooks.cc index a17204dda..ddf1c89d6 100644 --- a/apt-private/private-json-hooks.cc +++ b/apt-private/private-json-hooks.cc @@ -5,6 +5,7 @@ * * SPDX-License-Identifier: GPL-2.0+ */ +#include <config.h> #include <apt-pkg/debsystem.h> #include <apt-pkg/fileutl.h> |