diff options
| author | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2012-01-30 09:37:39 +0000 |
|---|---|---|
| committer | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2012-01-30 09:37:39 +0000 |
| commit | 529006f136778476f0530f4b782788bdde3fb425 (patch) | |
| tree | 1397499054ae786dddc3340607f4acf8dc97ef96 | |
| parent | 7d96e7c1c0e03ec9e1eb0872134dfa5f9fdaa50e (diff) | |
strncasecmp is C99
| -rw-r--r-- | applications/jpip/libopenjpip/imgsock_manager.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/applications/jpip/libopenjpip/imgsock_manager.c b/applications/jpip/libopenjpip/imgsock_manager.c index 4dc4bcc6..38867c1b 100644 --- a/applications/jpip/libopenjpip/imgsock_manager.c +++ b/applications/jpip/libopenjpip/imgsock_manager.c @@ -32,6 +32,9 @@ #include <string.h> #include <stdlib.h> #include "imgsock_manager.h" +#if _WIN32 +#define strncasecmp _strnicmp +#endif msgtype_t identify_clientmsg( SOCKET connected_socket) { @@ -77,7 +80,7 @@ Byte_t * receive_JPIPstream( SOCKET connected_socket, char **target, char **tid, return NULL; if( strstr( buf, "jp2")){ - // register cid option + /* register cid option*/ *target = strdup( buf); if((linelen = receive_line( connected_socket, buf)) == 0) @@ -99,7 +102,7 @@ Byte_t * receive_JPIPstream( SOCKET connected_socket, char **target, char **tid, jpipstream = receive_stream( connected_socket, datalen); - // check EOR + /* check EOR*/ if( jpipstream[datalen-3] == 0x00 && ( jpipstream[datalen-2] == 0x01 || jpipstream[datalen-2] == 0x02)) *streamlen = datalen -3; else |
