diff options
author | dcommander <dcommander@632fc199-4ca6-4c93-a231-07263d6284db> | 2014-05-16 10:43:44 +0000 |
---|---|---|
committer | dcommander <dcommander@632fc199-4ca6-4c93-a231-07263d6284db> | 2014-05-16 10:43:44 +0000 |
commit | 8bbf7d138a6b6896038c07213ce632a6ccc506e3 (patch) | |
tree | 0b9fd4fd9792b427eadbe4b5b7170580b7e90e6c /rdtarga.c | |
parent | 2af0178c4650df2f2b6dd8186ac84de275c0bf5c (diff) |
Get rid of the HAVE_PROTOTYPES configuration option, as well as the related JMETHOD and JPP macros. libjpeg-turbo has never supported compilers that don't handle prototypes. Doing so requires ansi2knr, which isn't even supported in the IJG code anymore.
git-svn-id: svn://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1308 632fc199-4ca6-4c93-a231-07263d6284db
Diffstat (limited to 'rdtarga.c')
-rw-r--r-- | rdtarga.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -56,7 +56,7 @@ typedef struct _tga_source_struct { JDIMENSION current_row; /* Current logical row number to read */ /* Pointer to routine to extract next Targa pixel from input file */ - JMETHOD(void, read_pixel, (tga_source_ptr sinfo)); + void (*read_pixel) (tga_source_ptr sinfo); /* Result of read_pixel is delivered here: */ U_CHAR tga_pixel[4]; @@ -68,8 +68,7 @@ typedef struct _tga_source_struct { int dup_pixel_count; /* # of times to duplicate previous pixel */ /* This saves the correct pixel-row-expansion method for preload_image */ - JMETHOD(JDIMENSION, get_pixel_rows, (j_compress_ptr cinfo, - cjpeg_source_ptr sinfo)); + JDIMENSION (*get_pixel_rows) (j_compress_ptr cinfo, cjpeg_source_ptr sinfo); } tga_source_struct; |