commit f730489e0a632bd738ade1e91c85c6ffdad21ba8
Author:     Tom Schwindl <schwi...@posteo.de>
AuthorDate: Wed Jan 11 09:17:47 2023 +0100
Commit:     Jan Klemkow <j.klem...@wemelug.de>
CommitDate: Tue Jan 24 16:59:40 2023 +0100

    slackline: do not include slackline.h in slackline_internals.h
    
    Although it's likely that slackline.h will be included alongside
    slackline_internals.h, including headers in headers often results in 
confusion.

diff --git a/slackline_emacs.c b/slackline_emacs.c
index fc58bd2..a5ed7ab 100644
--- a/slackline_emacs.c
+++ b/slackline_emacs.c
@@ -3,6 +3,7 @@
 #include <stddef.h>
 #include <stdlib.h>
 
+#include "slackline.h"
 #include "slackline_internals.h"
 
 void
diff --git a/slackline_internals.h b/slackline_internals.h
index 2f419e0..5206557 100644
--- a/slackline_internals.h
+++ b/slackline_internals.h
@@ -1,7 +1,7 @@
 #ifndef SLACKLINE_INTERNALS_H
 #define SLACKLINE_INTERNALS_H
 
-#include "slackline.h"
+struct slackline;
 
 enum direction {LEFT, RIGHT, HOME, END};
 

Reply via email to