diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-08-05 18:14:38 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-08-05 18:14:38 +0000 |
commit | 58800d9d604d9aa36fed3f3a4eaddaacc6857877 (patch) | |
tree | 3241a49683514ff0c03e50bc16483958e41a652b | |
parent | 1828eee6a6d91fd385ad1e69d93044516493aa91 (diff) | |
download | mana-58800d9d604d9aa36fed3f3a4eaddaacc6857877.tar.gz mana-58800d9d604d9aa36fed3f3a4eaddaacc6857877.tar.bz2 mana-58800d9d604d9aa36fed3f3a4eaddaacc6857877.tar.xz mana-58800d9d604d9aa36fed3f3a4eaddaacc6857877.zip |
Do not include config.h when the program has not been configured.
-rw-r--r-- | src/Makefile.am | 1 | ||||
-rw-r--r-- | src/resources/gettext.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 42b9d262..b3142582 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -307,5 +307,6 @@ tmw_SOURCES = gui/widgets/dropdown.cpp \ # set the include path found by configure INCLUDES = \ $(all_includes) \ + -DHAS_CONFIG_H \ -DTMW_DATADIR=\""$(pkgdatadir)/"\" \ -DLOCALEDIR=\""$(localedir)"\" diff --git a/src/resources/gettext.h b/src/resources/gettext.h index 4b893a6f..9abb5771 100644 --- a/src/resources/gettext.h +++ b/src/resources/gettext.h @@ -24,7 +24,9 @@ #ifndef _TMW_RESOURCES_GETTEXT_H #define _TMW_RESOURCES_GETTEXT_H +#ifdef HAS_CONFIG_H #include "../../config.h" +#endif #if ENABLE_NLS |