Brad Bishop | 7f28bc5 | 2017-12-03 23:42:40 -0500 | [diff] [blame] | 1 | From 7ef9c040dd959105c16d4dc67e14f3bbea25e77f Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Fri, 16 Dec 2016 19:51:19 +0000 |
| 4 | Subject: [PATCH] include cups/ppd.h for missing ppd definitions |
| 5 | |
| 6 | Fixes errors spotted by clang |
| 7 | |
| 8 | | prnt/hpcups/HPCupsFilter.cpp:365:18: error: use of undeclared identifier 'ppdFindAttr' |
| 9 | | if (((attr = ppdFindAttr(m_ppd, "hpPrinterLanguage", NULL)) == NULL) || |
| 10 | | ^ |
| 11 | | prnt/hpcups/HPCupsFilter.cpp:368:13: error: use of undeclared identifier 'ppdClose' |
| 12 | | ppdClose(m_ppd); |
| 13 | | ^ |
| 14 | | prnt/hpcups/HPCupsFilter.cpp:444:9: error: use of undeclared identifier 'ppdClose' |
| 15 | | ppdClose(m_ppd); |
| 16 | | ^ |
| 17 | | prnt/hpcups/HPCupsFilter.cpp:497:13: error: use of undeclared identifier 'ppdOpenFile' |
| 18 | | m_ppd = ppdOpenFile(getenv("PPD")); |
| 19 | | ^ |
| 20 | |
| 21 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 22 | --- |
| 23 | Upstream-Status: Pending |
| 24 | |
| 25 | prnt/hpcups/HPCupsFilter.h | 1 + |
| 26 | 1 file changed, 1 insertion(+) |
| 27 | |
| 28 | diff --git a/prnt/hpcups/HPCupsFilter.h b/prnt/hpcups/HPCupsFilter.h |
| 29 | index 0431a7a..eb0cad6 100644 |
| 30 | --- a/prnt/hpcups/HPCupsFilter.h |
| 31 | +++ b/prnt/hpcups/HPCupsFilter.h |
| 32 | @@ -37,6 +37,7 @@ |
| 33 | #include "Job.h"
|
| 34 |
|
| 35 | #include "dbuscomm.h"
|
| 36 | +#include <cups/ppd.h>
|
| 37 |
|
| 38 | #define DBITMAPFILEHEADER 14
|
| 39 | #define DBITMAPINFOHEADER 40
|
| 40 | -- |
| 41 | 1.9.1 |
| 42 | |