diff options
author | Christian Hergert <chergert@redhat.com> | 2023-03-16 16:43:45 -0700 |
---|---|---|
committer | Christian Hergert <chergert@redhat.com> | 2023-03-22 16:44:35 -0700 |
commit | c5c1452307721cd1e216b8faaff99ed83ed94e4b (patch) | |
tree | 75cb2810d4e646f6a4e5d746b46629d3bc5da961 /libpeas/peas-version-macros.h | |
parent | 46cf665494b7602b2aed8cb156415236f828e112 (diff) | |
download | libpeas-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.h | 4 |
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" |