#ifndef _WX_MSW_REGISTRY_H_
#define _WX_MSW_REGISTRY_H_
-class WXDLLIMPEXP_BASE wxOutputStream;
+#include "wx/defs.h"
+
+#if wxUSE_REGKEY
+
+class WXDLLIMPEXP_FWD_BASE wxOutputStream;
// ----------------------------------------------------------------------------
// class wxRegKey encapsulates window HKEY handle
DECLARE_NO_COPY_CLASS(wxRegKey)
};
+#endif // wxUSE_REGKEY
+
#endif // _WX_MSW_REGISTRY_H_