diff options
author | Gary Kramlich <grim@reaperworld.com> | 2020-11-19 21:49:57 -0600 |
---|---|---|
committer | Gary Kramlich <grim@reaperworld.com> | 2020-11-19 21:49:57 -0600 |
commit | ea022b50ab4a6650ac25e476b7036b9d5ad4a99b (patch) | |
tree | 458de9440f46a8c93daff61d7ef24ee06b835739 /pidgin/pidgin.h.in | |
parent | 671444b45835e67b56d2407af2353bda2d944c8f (diff) | |
download | pidgin-ea022b50ab4a6650ac25e476b7036b9d5ad4a99b.tar.gz |
Don't allow libraries to include their own global header files.
Testing Done:
Compiled, ran unit tests, and built the docs
Reviewed at https://reviews.imfreedom.org/r/232/
Diffstat (limited to 'pidgin/pidgin.h.in')
-rw-r--r-- | pidgin/pidgin.h.in | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pidgin/pidgin.h.in b/pidgin/pidgin.h.in index 5cea910f67..e2075160b1 100644 --- a/pidgin/pidgin.h.in +++ b/pidgin/pidgin.h.in @@ -37,9 +37,15 @@ #include <glib.h> +#ifndef __GI_SCANNER__ +# ifdef PIDGIN_COMPILATION +# error "pidgin source files should not be including pidgin.h" +# endif /* PIDGIN_COMPILATION */ +#endif /* __GI_SCANNER__ */ + #ifndef PIDGIN_GLOBAL_HEADER_INSIDE -#define PIDGIN_GLOBAL_HEADER_INSIDE -#endif +# define PIDGIN_GLOBAL_HEADER_INSIDE +#endif /* PIDGIN_GLOBAL_HEADER_INSIDE */ @PIDGIN_H_INCLUDES@ |