+#if wxUSE_STREAMS
+
+#include <stdlib.h>
+#include "wx/stream.h"
+#include "wx/mstream.h"
+
+// ============================================================================
+// implementation
+// ============================================================================
+
+// ----------------------------------------------------------------------------
+// wxMemoryInputStream
+// ----------------------------------------------------------------------------
+
+wxMemoryInputStream::wxMemoryInputStream(const void *data, size_t len)