diff options
author | ale <ale@FreeBSD.org> | 2005-11-03 05:49:40 +0800 |
---|---|---|
committer | ale <ale@FreeBSD.org> | 2005-11-03 05:49:40 +0800 |
commit | 2dc58ca2cea3c158507c23749d19d75d30041dbd (patch) | |
tree | 7ac9e83c6659f6dd3a60d63fb5f4015c056afffe /print/hpijs | |
parent | 5854cd3bcbe7640fd3f17d9029791eed1e1ff9ac (diff) | |
download | freebsd-ports-gnome-2dc58ca2cea3c158507c23749d19d75d30041dbd.tar.gz freebsd-ports-gnome-2dc58ca2cea3c158507c23749d19d75d30041dbd.tar.zst freebsd-ports-gnome-2dc58ca2cea3c158507c23749d19d75d30041dbd.zip |
Fix build on FreeBSD 4.x.
PR: ports/88386
Submitted by: Matthew Luckie <mjl@luckie.org.nz>
Diffstat (limited to 'print/hpijs')
-rw-r--r-- | print/hpijs/files/patch-ljjetready.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/print/hpijs/files/patch-ljjetready.cpp b/print/hpijs/files/patch-ljjetready.cpp new file mode 100644 index 000000000000..40482bd2fbec --- /dev/null +++ b/print/hpijs/files/patch-ljjetready.cpp @@ -0,0 +1,20 @@ +--- ljjetready.cpp.orig Wed Nov 2 22:42:26 2005 ++++ ljjetready.cpp Wed Nov 2 22:45:37 2005 +@@ -799,17 +799,7 @@ + + extern "C" + { +-void jpeg_finish_compress (j_compress_ptr cinfo); +-JDIMENSION jpeg_write_scanlines (j_compress_ptr cinfo, JSAMPARRAY scanlines, JDIMENSION num_lines); +-void jpeg_start_compress(struct jpeg_compress_struct *,unsigned char); +-void jpeg_suppress_tables(struct jpeg_compress_struct *,unsigned char); +-void jpeg_add_quant_table(struct jpeg_compress_struct *,int,unsigned int const *,int,unsigned char); +-void jpeg_default_colorspace(struct jpeg_compress_struct *); +-void jpeg_set_defaults(struct jpeg_compress_struct *); +-void jpeg_CreateCompress(struct jpeg_compress_struct *,int,unsigned int); +-void jpeg_destroy_compress(struct jpeg_compress_struct *); + void jpeg_buffer_dest (j_compress_ptr cinfo, JOCTET* outbuff, void* flush_output_buffer_callback); +-struct jpeg_error_mgr * jpeg_std_error(struct jpeg_error_mgr * err); + } + + #define ConvertToGrayMacro(red, green, blue) ((unsigned char)( ( (red * 30) + (green * 59) + (blue * 11) ) / 100 )) |