summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOlliver Schinagl <o.schinagl@ultimaker.com>2015-06-10 07:08:34 (GMT)
committerOlliver Schinagl <o.schinagl@ultimaker.com>2015-06-12 05:30:15 (GMT)
commit61edebbad95a94e068cb3a936326c389ecfdc7f1 (patch)
tree4238be569c65e3988dfaa999188b0496e2dec3e2 /src
parent1b5dfeceb5bde0eba7e2e7767980ce292ce5b1a8 (diff)
downloadeulogium-61edebbad95a94e068cb3a936326c389ecfdc7f1.zip
eulogium-61edebbad95a94e068cb3a936326c389ecfdc7f1.tar.gz
eulogium-61edebbad95a94e068cb3a936326c389ecfdc7f1.tar.bz2
[griffin.hmi] extract int. macros into seperate header
Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
Diffstat (limited to 'src')
-rw-r--r--src/eulogium.c10
-rw-r--r--src/eulogium_private.h23
2 files changed, 26 insertions, 7 deletions
diff --git a/src/eulogium.c b/src/eulogium.c
index ddd860b..c0bc0ad 100644
--- a/src/eulogium.c
+++ b/src/eulogium.c
@@ -7,20 +7,16 @@
#include <Eeze_Disk.h>
#include <Elementary.h>
#include <Evas.h>
+#include <libintl.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdint.h>
+#include "eulogium_item_list.h"
+#include "eulogium_private.h"
#include "gettext.h"
-#if HAVE_GETTEXT && ENABLE_NLS
-#define _(string) gettext(string)
-#else
-#define _(string) (string)
-#endif
-#define gettext_noop(string) string
-
#include "eulogium.h"
#define COPYRIGHT "Copyright © 2015 Olliver Schinagl <o.schinagl@ultimaker.com> and various contributors (see AUTHORS)."
diff --git a/src/eulogium_private.h b/src/eulogium_private.h
new file mode 100644
index 0000000..3735b70
--- /dev/null
+++ b/src/eulogium_private.h
@@ -0,0 +1,23 @@
+/*
+ * eulogium_private, some common private helpers
+ *
+ * Copyright (c) 2015 Ultimaker B.V.
+ * Author: Olliver Schinagl <o.schinagl@ultimaker.com>
+ *
+ * SPDX-License-Identifier: AGPL-3.0+
+ */
+
+#ifndef _EULOGIUM_PRIVATE_H
+#define _EULOGIUM_PRIVATE_H
+
+#include <libintl.h>
+
+#include "gettext.h"
+
+#if HAVE_GETTEXT && ENABLE_NLS
+#define _(string) gettext(string)
+#else
+#define _(string) (string)
+#endif
+
+#endif /* _EULOGIUM_PRIVATE_H */