From: <pcb...@us...> - 2008-10-30 20:22:09
|
Revision: 3762 http://sashimi.svn.sourceforge.net/sashimi/?rev=3762&view=rev Author: pcbrefugee Date: 2008-10-30 20:22:04 +0000 (Thu, 30 Oct 2008) Log Message: ----------- conditional compile for stricmp vs strcasecmp Modified Paths: -------------- trunk/trans_proteomic_pipeline/extern/gzstream/gzstream.cpp Modified: trunk/trans_proteomic_pipeline/extern/gzstream/gzstream.cpp =================================================================== --- trunk/trans_proteomic_pipeline/extern/gzstream/gzstream.cpp 2008-10-30 00:00:15 UTC (rev 3761) +++ trunk/trans_proteomic_pipeline/extern/gzstream/gzstream.cpp 2008-10-30 20:22:04 UTC (rev 3762) @@ -35,6 +35,10 @@ #include <iostream> #include <string.h> // for memcpy +#if defined(_MSC_VER) || defined(__MINGW32__) // MSVC or MinGW +#define strcasecmp stricmp +#endif + #ifdef GZSTREAM_NAMESPACE namespace GZSTREAM_NAMESPACE { #endif @@ -65,7 +69,7 @@ if (( mode & std::ios::out) && (compressionlevel<0)) { // undeclared compression level - go all or nothing depending on filename int len = strlen(name); - compressionlevel = (!stricmp(name+len-3,".gz"))?9:0; + compressionlevel = (!strcasecmp(name+len-3,".gz"))?9:0; } if (( mode & std::ios::out) && (compressionlevel > 0)) *fmodeptr++ = '0'+compressionlevel; // bpratt insilicos 2008 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |