Fix --no-nls, i18n include order in libs -- #8361

Ardour's "pbd/i18n.h" needs to be included last,
after any include that may indirectly pull in getext or libintl.

For that reason "pbd/i18n.h" must not be used in header files either.
This commit is contained in:
Robin Gareus 2020-08-19 17:39:32 +02:00
parent af254b8ff9
commit fcd347fe0c
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
14 changed files with 31 additions and 21 deletions

View file

@ -41,7 +41,6 @@
#include "pbd/error.h"
#include "pbd/failed_constructor.h"
#include "pbd/file_utils.h"
#include "pbd/i18n.h"
#include "pbd/strsplit.h"
#include "pbd/types_convert.h"
#include "pbd/xml++.h"
@ -66,6 +65,8 @@
#include "pbd/abstract_ui.cc" // instantiate template
#include "pbd/i18n.h"
using namespace ARDOUR;
using namespace PBD;
using namespace Glib;