Fix a mis-located #endif that would cause the C compiler to skip ImageWriter related function prototypes. Missing prototypes triggered several compiler warnings.

This commit is contained in:
Peter 2015-01-07 02:20:23 +00:00
parent ce319c9370
commit e3b7bcd23e
1 changed files with 5 additions and 1 deletions

View File

@ -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 <stdbool.h>
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