aboutsummaryrefslogtreecommitdiff
path: root/config.h.in
diff options
context:
space:
mode:
Diffstat (limited to 'config.h.in')
-rw-r--r--config.h.in16
1 files changed, 3 insertions, 13 deletions
diff --git a/config.h.in b/config.h.in
index 665ddec..9ddcf53 100644
--- a/config.h.in
+++ b/config.h.in
@@ -12,7 +12,9 @@
#define PROJECT_VERSION "${project_VERSION}"
#define PROJECT_URL "${project_URL}"
-#if ${OPTION_NOINSTALL}
+#cmakedefine OPTION_NOINSTALL
+
+#ifdef OPTION_NOINSTALL
/* For developers. */
#define PROJECT_SHARE_DIR "${CMAKE_SOURCE_DIR}/share/"
#define PROJECT_GSETTINGS_DIR "${CMAKE_BINARY_DIR}"
@@ -23,10 +25,6 @@
#endif
-#cmakedefine HAVE_SANE___RESTRICT
-#cmakedefine HAVE_RESTRICT
-
-
#include <glib/gi18n.h>
#define GETTEXT_DOMAIN "${PROJECT_NAME}"
@@ -37,14 +35,6 @@
#endif
-#ifndef HAVE_SANE___RESTRICT
- #ifdef HAVE_RESTRICT
- #define __restrict restrict
- #else
- #define __restrict
- #endif
-#endif /* ! HAVE_SANE___RESTRICT */
-
/* We have to remove nodes first due to a bug in json-glib. */
#define json_object_set_member(object, name, node) \
G_STMT_START { \