#922. Fix Linux build breaker and MSVC compilation warnings.

v0.27.3
Robin Mills 10 years ago
parent f1362f9250
commit fd1852da84

@ -72,6 +72,7 @@ EXIV2_RCSID("@(#) $Id$")
#include <sys/types.h>
#include <sys/stat.h>
#include <stdarg.h>
#ifdef _MSC_VER
# define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
#endif

@ -137,8 +137,8 @@ namespace Exiv2 {
chType[i-4]=cheaderBuf.pData_[i];
}
size_t blen = 32 ;
size_t dOff = dataOffset;
uint32_t blen = 32 ;
uint32_t dOff = dataOffset;
std::string dataString ;
if ( dataOffset > blen ) {
@ -152,7 +152,7 @@ namespace Exiv2 {
// for XMP, back up and read the whole block
const char* key = "XML:com.adobe.xmp" ;
int start = ::strlen(key);
size_t start = ::strlen(key);
if ( option == kpsXMP && dataString.find(key)==0 ) {
#if defined(_MSC_VER)

Loading…
Cancel
Save