summaryrefslogtreecommitdiff
path: root/libpeas/peas-version-macros.h
diff options
context:
space:
mode:
authorChristian Hergert <chergert@redhat.com>2023-03-16 16:43:45 -0700
committerChristian Hergert <chergert@redhat.com>2023-03-22 16:44:35 -0700
commitc5c1452307721cd1e216b8faaff99ed83ed94e4b (patch)
tree75cb2810d4e646f6a4e5d746b46629d3bc5da961 /libpeas/peas-version-macros.h
parent46cf665494b7602b2aed8cb156415236f828e112 (diff)
downloadlibpeas-c5c1452307721cd1e216b8faaff99ed83ed94e4b.tar.gz
janitorial: add LIBPEAS_INSIDE include checks
Make sure that only <libpeas.h> is included directly. Additionally this ensures we always have LIBPEAS_COMPILATION set when building libpeas.
Diffstat (limited to 'libpeas/peas-version-macros.h')
-rw-r--r--libpeas/peas-version-macros.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libpeas/peas-version-macros.h b/libpeas/peas-version-macros.h
index 2d43d84..7ce7173 100644
--- a/libpeas/peas-version-macros.h
+++ b/libpeas/peas-version-macros.h
@@ -21,6 +21,10 @@
#pragma once
+#if !defined (LIBPEAS_INSIDE) && !defined (LIBPEAS_COMPILATION)
+# error "Only <libpeas.h> can be included directly."
+#endif
+
#include <glib.h>
#include "peas-version.h"