Skip to content

Commit

Permalink
Push ENABLE_NLS above include of "graphics-info.h"
Browse files Browse the repository at this point in the history
Fixes Charles cgettext() header problems.
  • Loading branch information
pemsley committed Jan 26, 2022
1 parent 6968b19 commit 18202fe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
6 changes: 2 additions & 4 deletions src/lbg-interface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,11 @@
#endif

#include "compat/coot-sysdep.h"
#define ENABLE_NLS // 20220126-PE Charles says this is needed to fix dcgettext() problems
// when including libintl.h - move it up above graphics-info.h
#include "graphics-info.h"


#include <cstring>
#define ENABLE_NLS // fix dcgettext() header problems on including
// libintl.h (via RDKitBase.h etc (including boost
// stuff).

#ifdef MAKE_ENHANCED_LIGAND_TOOLS
#include "lidia-core/rdkit-interface.hh"
Expand Down
4 changes: 2 additions & 2 deletions src/restraints-editor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ coot::restraints_editor::get_column_type(int tree_type, int column_number, int m
break;
default:
r = G_TYPE_STRING;
}
}
}
}
if (tree_type == coot::restraints_editor::TREE_TYPE_CHIRALS) {
switch(column_number) {
case(5):
Expand Down
6 changes: 2 additions & 4 deletions src/sdf-interface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@

// We need this high so that dcgettext() so we don't get expected unqualified-id before 'const'
// errors when we read libintl from rdkit-interface.hh
#define ENABLE_NLS // 20220126-PE Charles says this is needed to fix dcgettext() problems
// when including libintl.h - hmm!
#include "graphics-info.h"
#ifdef MAKE_ENHANCED_LIGAND_TOOLS
#include <libintl.h>
Expand All @@ -34,10 +36,6 @@

#include <cstring>

#define ENABLE_NLS // fix dcgettext() header problems on including
// libintl.h (via RDKitBase.h etc (including boost
// stuff).

#include <iostream> // for istream?
#include <istream> // for istream?

Expand Down

0 comments on commit 18202fe

Please sign in to comment.