From f4b526e71efa7d70778a1e8b90fea35326cb85ab Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Thu, 18 Oct 2018 09:38:49 -0400 Subject: [PATCH] Don't install internal headers. --- cups/Makefile | 2 -- cups/debug-private.h | 3 +++ cups/debug.c | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cups/Makefile b/cups/Makefile index 9d3b422e1b..ea214a45b3 100644 --- a/cups/Makefile +++ b/cups/Makefile @@ -128,12 +128,10 @@ HEADERS = \ HEADERSPRIV = \ array-private.h \ cups-private.h \ - debug-private.h \ file-private.h \ http-private.h \ ipp-private.h \ language-private.h \ - md5-private.h \ ppd-private.h \ pwg-private.h \ raster-private.h \ diff --git a/cups/debug-private.h b/cups/debug-private.h index 4cabe0d8c0..8d58e224bd 100644 --- a/cups/debug-private.h +++ b/cups/debug-private.h @@ -77,11 +77,14 @@ extern "C" { * Prototypes... */ +# ifdef DEBUG extern int _cups_debug_fd _CUPS_PRIVATE; extern int _cups_debug_level _CUPS_PRIVATE; extern void _cups_debug_printf(const char *format, ...) _CUPS_FORMAT(1,2) _CUPS_PRIVATE; extern void _cups_debug_puts(const char *s) _CUPS_PRIVATE; extern void _cups_debug_set(const char *logfile, const char *level, const char *filter, int force) _CUPS_PRIVATE; +# endif /* DEBUG */ + # ifdef _WIN32 extern int _cups_gettimeofday(struct timeval *tv, void *tz) _CUPS_PRIVATE; # define gettimeofday(a,b) _cups_gettimeofday(a, b) diff --git a/cups/debug.c b/cups/debug.c index b04432b5e3..372c3a3917 100644 --- a/cups/debug.c +++ b/cups/debug.c @@ -35,6 +35,7 @@ _cups_gettimeofday(struct timeval *tv, /* I - Timeval struct */ #include +#ifdef DEBUG /* * Globals... */ @@ -45,7 +46,6 @@ int _cups_debug_level = 1; /* Log level (0 to 9) */ -#ifdef DEBUG /* * Local globals... */ -- 2.47.2