Merge branch 'upstream-kwsys' into update-kwsys
This commit is contained in:
commit
f401b925cf
|
@ -299,6 +299,13 @@ IF(NOT CMAKE_COMPILER_IS_GNUCXX)
|
||||||
ENDIF(CMAKE_SYSTEM MATCHES "OSF1-V.*")
|
ENDIF(CMAKE_SYSTEM MATCHES "OSF1-V.*")
|
||||||
IF(CMAKE_SYSTEM MATCHES "HP-UX")
|
IF(CMAKE_SYSTEM MATCHES "HP-UX")
|
||||||
SET(KWSYS_PLATFORM_CXX_TEST_EXTRA_FLAGS "+p")
|
SET(KWSYS_PLATFORM_CXX_TEST_EXTRA_FLAGS "+p")
|
||||||
|
IF(CMAKE_CXX_COMPILER_ID MATCHES "HP")
|
||||||
|
# it is known that version 3.85 fails and 6.25 works without these flags
|
||||||
|
IF(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4)
|
||||||
|
# use new C++ library and improved template support
|
||||||
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -AA +hpxstd98")
|
||||||
|
ENDIF()
|
||||||
|
ENDIF()
|
||||||
ENDIF(CMAKE_SYSTEM MATCHES "HP-UX")
|
ENDIF(CMAKE_SYSTEM MATCHES "HP-UX")
|
||||||
ENDIF(NOT CMAKE_COMPILER_IS_GNUCXX)
|
ENDIF(NOT CMAKE_COMPILER_IS_GNUCXX)
|
||||||
|
|
||||||
|
|
|
@ -478,11 +478,16 @@ void kwsysMD5_Initialize(kwsysMD5* md5)
|
||||||
/*--------------------------------------------------------------------------*/
|
/*--------------------------------------------------------------------------*/
|
||||||
void kwsysMD5_Append(kwsysMD5* md5, unsigned char const* data, int length)
|
void kwsysMD5_Append(kwsysMD5* md5, unsigned char const* data, int length)
|
||||||
{
|
{
|
||||||
|
size_t dlen;
|
||||||
if(length < 0)
|
if(length < 0)
|
||||||
{
|
{
|
||||||
length = (int)strlen((char const*)data);
|
dlen = strlen((char const*)data);
|
||||||
}
|
}
|
||||||
md5_append(&md5->md5_state, (md5_byte_t const*)data, (size_t)length);
|
else
|
||||||
|
{
|
||||||
|
dlen = (size_t)length;
|
||||||
|
}
|
||||||
|
md5_append(&md5->md5_state, (md5_byte_t const*)data, dlen);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*--------------------------------------------------------------------------*/
|
/*--------------------------------------------------------------------------*/
|
||||||
|
|
Loading…
Reference in New Issue