summaryrefslogtreecommitdiff
path: root/codec
diff options
context:
space:
mode:
authorFrancois-Olivier Devaux <fodevaux@users.noreply.github.com>2010-03-07 21:10:47 +0000
committerFrancois-Olivier Devaux <fodevaux@users.noreply.github.com>2010-03-07 21:10:47 +0000
commit67b5ab3c045fae8da28392596ee49ac1bbdbec40 (patch)
tree7b29977d83c2b073d503f1427d90adddece7fad9 /codec
parent935baae8fcd9fcbd2425d70d9da47b60c1855659 (diff)
Fixed small compatibility issues with win32 in codec (moved include <strings.h>)
Diffstat (limited to 'codec')
-rw-r--r--codec/image_to_j2k.c6
-rw-r--r--codec/j2k_to_image.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/codec/image_to_j2k.c b/codec/image_to_j2k.c
index 15621489..998d3782 100644
--- a/codec/image_to_j2k.c
+++ b/codec/image_to_j2k.c
@@ -43,8 +43,8 @@
#include "index.h"
#ifndef WIN32
-#define stricmp strcasecmp
-#define strnicmp strncasecmp
+#define _stricmp strcasecmp
+#define _strnicmp strncasecmp
#endif
/* ----------------------------------------------------------------------- */
@@ -400,7 +400,7 @@ int get_file_format(char *filename) {
return -1;
ext++;
for(i = 0; i < sizeof(format)/sizeof(*format); i++) {
- if(strnicmp(ext, extension[i], 3) == 0) {
+ if(_strnicmp(ext, extension[i], 3) == 0) {
return format[i];
}
}
diff --git a/codec/j2k_to_image.c b/codec/j2k_to_image.c
index 523cb5c4..c5b9120e 100644
--- a/codec/j2k_to_image.c
+++ b/codec/j2k_to_image.c
@@ -43,8 +43,8 @@
#include "index.h"
#ifndef WIN32
-#define stricmp strcasecmp
-#define strnicmp strncasecmp
+#define _stricmp strcasecmp
+#define _strnicmp strncasecmp
#endif
/* ----------------------------------------------------------------------- */
@@ -198,7 +198,7 @@ int get_file_format(char *filename) {
ext++;
if(ext) {
for(i = 0; i < sizeof(format)/sizeof(*format); i++) {
- if(strnicmp(ext, extension[i], 3) == 0) {
+ if(_strnicmp(ext, extension[i], 3) == 0) {
return format[i];
}
}