X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d38f70b2494626c4c04dbec17b48d1029b7bcd10..e8cde1f3a7f379816d96d513f05919300092feb5:/src/msw/registry.cpp?ds=sidebyside

diff --git a/src/msw/registry.cpp b/src/msw/registry.cpp
index 6ba78d3c25..f05a631e10 100644
--- a/src/msw/registry.cpp
+++ b/src/msw/registry.cpp
@@ -19,6 +19,8 @@
     #pragma hdrstop
 #endif
 
+#if wxUSE_REGKEY
+
 #ifndef WX_PRECOMP
     #include "wx/msw/wrapwin.h"
     #include "wx/string.h"
@@ -1444,3 +1446,5 @@ inline const wxChar *RegValueStr(const wxString& szValue)
 {
     return szValue.empty() ? (const wxChar*)NULL : szValue.wx_str();
 }
+
+#endif // wxUSE_REGKEY