X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/93ccaed86983970c4a2aa5af34593781e5b8964f..efba2b89f15ba8757a722fc56c67f434cf960482:/include/wx/utils.h diff --git a/include/wx/utils.h b/include/wx/utils.h index 03503f6fdf..9e964e7a3d 100644 --- a/include/wx/utils.h +++ b/include/wx/utils.h @@ -74,7 +74,7 @@ WXDLLEXPORT bool StringMatch(wxChar *one, wxChar *two, bool subString = TRUE, bo // ---------------------------------------------------------------------------- // Sound the bell -WXDLLEXPORT void wxBell(void) ; +WXDLLEXPORT void wxBell(); // Get OS version WXDLLEXPORT int wxGetOsVersion(int *majorVsn= (int *) NULL,int *minorVsn= (int *) NULL) ; @@ -82,6 +82,7 @@ WXDLLEXPORT int wxGetOsVersion(int *majorVsn= (int *) NULL,int *minorVsn= (int * // Return a string with the current date/time WXDLLEXPORT wxString wxNow(); +#if wxUSE_GUI // Don't synthesize KeyUp events holding down a key and producing // KeyDown events with autorepeat. On by default and always on // in wxMSW. @@ -106,6 +107,8 @@ WXDLLEXPORT void wxRegisterId(long id); // Return the current ID WXDLLEXPORT long wxGetCurrentId(); +#endif // wxUSE_GUI + // ---------------------------------------------------------------------------- // Various conversions // ---------------------------------------------------------------------------- @@ -215,6 +218,8 @@ WXDLLEXPORT const wxMB2WXbuf wxGetUserHome(const wxString& user = wxEmptyString) WXDLLEXPORT wxChar* wxGetUserHome(const wxString& user = wxEmptyString); #endif +#if wxUSE_GUI // GUI only things from now on + // ---------------------------------------------------------------------------- // Strip out any menu codes // ---------------------------------------------------------------------------- @@ -388,5 +393,7 @@ extern wxNativeFont wxLoadQueryNearestFont(int pointSize, #endif // X || GTK +#endif // wxUSE_GUI + #endif // _WX_UTILSH__