Skip to content

Commit

Permalink
Fix build with NLS enabled
Browse files Browse the repository at this point in the history
We need to include fc_config.h in fcintl.h to control enabling NLS. Else we're
defining "textdomain" as nothing, which doesn't play nice with libintl.h.
  • Loading branch information
lmoureaux authored and jwrober committed Jul 30, 2022
1 parent 77f1662 commit 4f5fe2b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions utility/fcintl.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@

#include <clocale>

#include "shared.h" // bool
#include "support.h" // fc__attribute
#include "fc_config.h" // FREECIV_ENABLE_NLS
#include "shared.h" // bool
#include "support.h" // fc__attribute

#ifdef FREECIV_ENABLE_NLS

Expand Down

0 comments on commit 4f5fe2b

Please sign in to comment.