[vtk-developers] borland developer studio 2006

Brad King brad.king at kitware.com
Wed Dec 7 17:33:28 EST 2005


Luca Picello wrote:
>> +++ Utilities/DICOMParser/DICOMAppHelper.cxx    7 Dec 2005 21:14:46 -0000
>> @@ -34,6 +34,9 @@
>>  #include <string>
>>  #include <math.h>
>>  #include <algorithm>
>> +#if defined(__BORLANDC__)
>> +#include <mem.h> // for memcpy
>> +#endif

The same fix was put in vtkSystemIncludes.h a while back with an 
explanation of why it is needed:

// Borland C++ defines several of the stdlib.h and string.h symbols in
// sub-headers search.h and mem.h.  These sub-headers have using
// declarations to pull functions from the std namespace to the global
// namespace, but they are defined only if the header was not included
// through the C++-style cstdlib or cstring header.  These outer
// headers are included by the streams library in C++-style and
// include blockers are put in place that prevent including the
// C-style versions from ever including the sub-headers.  Therefore we
// have to include the sub-headers here to get the using declarations.
#if defined(__BORLANDC__)
# include <mem.h>    /* mem... functions from string.h */
# include <search.h> /* search functions from stdlib.h */
#endif

-Brad



More information about the vtk-developers mailing list