From e3b7bcd23ef24ea701904f967fb56d5e77cb8566 Mon Sep 17 00:00:00 2001 From: Peter Date: Wed, 7 Jan 2015 02:20:23 +0000 Subject: [PATCH] Fix a mis-located #endif that would cause the C compiler to skip ImageWriter related function prototypes. Missing prototypes triggered several compiler warnings. --- src/imagewriter.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/imagewriter.h b/src/imagewriter.h index c7261ae..c58cd55 100644 --- a/src/imagewriter.h +++ b/src/imagewriter.h @@ -294,12 +294,17 @@ private: Bit8u ASCII85CurCol; // Columns printed so far in the current lines }; +#endif //Interfaces to C code #ifdef __cplusplus extern "C" { +#else +#include +typedef unsigned char Bit8u; #endif + void imagewriter_init(int pdpi, int pwidth, int pheight, char* poutput, bool mpage, int port); void imagewriter_loop(Bit8u pchar,int port); void imagewriter_close(); @@ -309,4 +314,3 @@ void imagewriter_feed(); #endif #endif -#endif