libgnt/libgnt

Parents 741097e10968
Children b1b6b80c9f91
Make it so that gnt.h may not be included by the gnt source files

Testing Done:
Compiled

Reviewed at https://reviews.imfreedom.org/r/237/
  • +7 -1
    gnt.h.in
  • --- a/gnt.h.in Mon Nov 16 18:21:39 2020 -0600
    +++ b/gnt.h.in Thu Nov 19 22:43:23 2020 -0600
    @@ -24,9 +24,15 @@
    #include <glib.h>
    +#ifndef __GI_SCANNER__
    +# ifdef GNT_COMPILATION
    +# error "gnt source files should not include gnt.h"
    +# endif /* GNT_COMPILATION */
    +#endif /* __GI_SCANNER__ */
    +
    #ifndef GNT_GLOBAL_HEADER_INSIDE
    # define GNT_GLOBAL_HEADER_INSIDE
    -#endif
    +#endif /* GNT_GLOBAL_HEADER_INSIDE */
    @GNT_H_INCLUDES@