summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-01-25 23:12:55 +0100
committerraveit65 <[email protected]>2021-02-02 22:44:05 +0100
commit18a34d78737374627f1128be3b66c8ddd95bdb0e (patch)
treec705eae27bae7aba53eb685d90fe6d8018c64ae1 /src
parent2111e64a46ae956bdac3242f490d4fb252113c4a (diff)
downloadmate-calc-18a34d78737374627f1128be3b66c8ddd95bdb0e.tar.bz2
mate-calc-18a34d78737374627f1128be3b66c8ddd95bdb0e.tar.xz
build: Use config.h which defines GETTEXT_PACKAGE & VERSION
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am2
-rw-r--r--src/mate-calc.c4
-rw-r--r--src/math-window.c4
3 files changed, 8 insertions, 2 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 24b8a2e..4ef161a 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -4,9 +4,7 @@ noinst_PROGRAMS = test-mp test-mp-equation
TESTS = test-mp test-mp-equation
AM_CPPFLAGS = \
- -DVERSION=\""$(VERSION)"\" \
-DLOCALE_DIR=\""$(localedir)"\" \
- -DGETTEXT_PACKAGE=\"$(GETTEXT_PACKAGE)\" \
$(WARN_CFLAGS) \
$(MATE_CALC_CFLAGS)
diff --git a/src/mate-calc.c b/src/mate-calc.c
index b12ab79..99224ba 100644
--- a/src/mate-calc.c
+++ b/src/mate-calc.c
@@ -9,6 +9,10 @@
* license.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
diff --git a/src/math-window.c b/src/math-window.c
index f627c65..9dc8f67 100644
--- a/src/math-window.c
+++ b/src/math-window.c
@@ -9,6 +9,10 @@
* license.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <glib/gi18n.h>
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>