X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1972900ebf36cdec7feb9083854a12ef4bf45d2c..8257d7cd478c54532cc7d8fd0ace9faf5e9efb23:/include/wx/sysopt.h diff --git a/include/wx/sysopt.h b/include/wx/sysopt.h index 90d802215b..f0eee94229 100644 --- a/include/wx/sysopt.h +++ b/include/wx/sysopt.h @@ -18,7 +18,11 @@ // Enables an application to influence the wxWidgets implementation // ---------------------------------------------------------------------------- -class WXDLLIMPEXP_BASE wxSystemOptions : public wxObject +class +#if wxUSE_SYSTEM_OPTIONS +WXDLLIMPEXP_BASE +#endif +wxSystemOptions : public wxObject { public: wxSystemOptions() { } @@ -34,6 +38,11 @@ public: static wxString GetOption(const wxString& name); static int GetOptionInt(const wxString& name); static bool HasOption(const wxString& name); + + static bool IsFalse(const wxString& name) + { + return HasOption(name) && GetOptionInt(name) == 0; + } }; #if !wxUSE_SYSTEM_OPTIONS