talkatu/talkatu

Parents 98abe1d4dc8d
Children da263b5cb33c
Make it so that talkatu.h may only be included outside of the Talkatu build.

Testing Done:
Compile only.

Reviewed at https://reviews.imfreedom.org/r/233/
--- a/talkatu/talkatu.h.in Thu Nov 19 21:52:33 2020 -0600
+++ b/talkatu/talkatu.h.in Thu Nov 19 21:52:40 2020 -0600
@@ -1,26 +1,33 @@
/*
* talkatu
- * Copyright (C) 2017-2019 Gary Kramlich <grim@reaperworld.com>
+ * Copyright (C) 2017-2020 Gary Kramlich <grim@reaperworld.com>
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
*
- * This library is distributed in the hope that it will be useful,
+ * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
*
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ * You should have received a copy of the GNU General Public License
+ * along with this library; if not, see <https://www.gnu.org/licenses/>.
*/
+
#ifndef TALKATU_H
#define TALKATU_H
+#ifndef __GI_SCANNER__
+# ifdef TALKATU_COMPILATION
+# error "talkatu sources should not include talkatu.h"
+# endif /* TALKATU_COMPILATION */
+#endif /* __GI_SCANNER__ */
+
#ifndef TALKATU_GLOBAL_HEADER_INSIDE
-#define TALKATU_GLOBAL_HEADER_INSIDE
-#endif
+# define TALKATU_GLOBAL_HEADER_INSIDE
+#endif /* TALKATU_GLOBAL_HEADER_INSIDE */
@TALKATU_H_INCLUDES@