// ----------------------------------------------------------------------------
#define DEFINE_BUFFER(classname, chartype, strdupfunc) \
-class classname \
+class WXDLLIMPEXP_BASE classname \
{ \
public: \
classname(const chartype *str) \
{ \
} \
\
- classname(size_t len) \
+ classname(size_t len=0) \
: m_str((chartype *)malloc((len + 1)*sizeof(chartype))) \
{ \
m_str[len] = (chartype)0; \
m_bufdata->m_len += 1;
}
- void AppendData(void* data, size_t len)
+ void AppendData(const void *data, size_t len)
{
memcpy(GetAppendBuf(len), data, len);
UngetAppendBuf(len);