diff options
| author | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2012-10-15 08:02:30 +0000 |
|---|---|---|
| committer | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2012-10-15 08:02:30 +0000 |
| commit | 54c2bcb60f6bea769a512fd6117cb8a504bb8bd6 (patch) | |
| tree | 5d2ed027db76bfadf3696248d1e20ecb268651cd | |
| parent | 44a5108e1df76452d4346c9fd164f733e3654583 (diff) | |
[trunk] Fix compilation in static mode. Prevent duplicate symbols with convert.c implementation
| -rw-r--r-- | src/lib/openjpip/jp2k_decoder.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/openjpip/jp2k_decoder.c b/src/lib/openjpip/jp2k_decoder.c index 4d731b7a..038ee83c 100644 --- a/src/lib/openjpip/jp2k_decoder.c +++ b/src/lib/openjpip/jp2k_decoder.c @@ -37,11 +37,11 @@ #include "openjpeg.h" -void error_callback(const char *msg, void *client_data); -void warning_callback(const char *msg, void *client_data); -void info_callback(const char *msg, void *client_data); +static void error_callback(const char *msg, void *client_data); +static void warning_callback(const char *msg, void *client_data); +static void info_callback(const char *msg, void *client_data); -Byte_t * imagetopnm(opj_image_t *image, ihdrbox_param_t **ihdrbox); +static Byte_t * imagetopnm(opj_image_t *image, ihdrbox_param_t **ihdrbox); Byte_t * j2k_to_pnm( FILE *fp, ihdrbox_param_t **ihdrbox) { @@ -134,28 +134,28 @@ Byte_t * j2k_to_pnm( FILE *fp, ihdrbox_param_t **ihdrbox) /** sample error callback expecting a FILE* client object */ -void error_callback(const char *msg, void *client_data) { +static void error_callback(const char *msg, void *client_data) { FILE *stream = (FILE*)client_data; fprintf(stream, "[ERROR] %s", msg); } /** sample warning callback expecting a FILE* client object */ -void warning_callback(const char *msg, void *client_data) { +static void warning_callback(const char *msg, void *client_data) { FILE *stream = (FILE*)client_data; fprintf(stream, "[WARNING] %s", msg); } /** sample debug callback expecting no client object */ -void info_callback(const char *msg, void *client_data) { +static void info_callback(const char *msg, void *client_data) { (void)client_data; (void)msg; /* fprintf(stdout, "[INFO] %s", msg); */ } -Byte_t * imagetopnm(opj_image_t *image, ihdrbox_param_t **ihdrbox) +static Byte_t * imagetopnm(opj_image_t *image, ihdrbox_param_t **ihdrbox) { OPJ_UINT32 adjustR, adjustG=0, adjustB=0; OPJ_SIZE_T datasize; |
