diff --git a/include/macros.h b/include/macros.h index 36fdaa1700..0e77528016 100644 --- a/include/macros.h +++ b/include/macros.h @@ -18,9 +18,8 @@ * Function GetChars * returns a pointer to the actual character data, either 8 or * 16 bits wide, depending on how the wxWidgets library was compiled. - * Pointer */ -const wxChar* GetChars( wxString s ) +static inline const wxChar* GetChars( wxString s ) { #if wxCHECK_VERSION(2,9,0) return (const wxChar*) s.wx_str();