From 1a3cb1b405585969da7548ec6b8f29b9bdd984ab Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 29 Dec 2017 11:22:22 +0000 Subject: [PATCH] headers: Don't make private structures public Signed-off-by: Michael Tremer --- Makefile.am | 1 + src/loc/private.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/Makefile.am b/Makefile.am index eddef93..0572567 100644 --- a/Makefile.am +++ b/Makefile.am @@ -60,6 +60,7 @@ EXTRA_DIST += src/libloc.sym src_libloc_la_CFLAGS = \ $(AM_CFLAGS) \ + -DLIBLOC_PRIVATE \ -fvisibility=hidden src_libloc_la_LDFLAGS = \ diff --git a/src/loc/private.h b/src/loc/private.h index abfa59d..19e0398 100644 --- a/src/loc/private.h +++ b/src/loc/private.h @@ -17,6 +17,8 @@ #ifndef LIBLOC_PRIVATE_H #define LIBLOC_PRIVATE_H +#ifdef LIBLOC_PRIVATE + #include #include @@ -55,3 +57,4 @@ void loc_log(struct loc_ctx *ctx, const char *format, ...) __attribute__((format(printf, 6, 7))); #endif +#endif -- 2.39.2