X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4a3bdee6a979146c426cd058e9bfe6b58135b124..3527f29c8769e09d796c547c0c309f8b86407012:/contrib/src/deprecated/wxexpr.cpp diff --git a/contrib/src/deprecated/wxexpr.cpp b/contrib/src/deprecated/wxexpr.cpp index bc2d40f850..f8450343cb 100644 --- a/contrib/src/deprecated/wxexpr.cpp +++ b/contrib/src/deprecated/wxexpr.cpp @@ -32,6 +32,11 @@ #include "wx/deprecated/expr.h" #include "wx/deprecated/wxexpr.h" +#if !WXWIN_COMPATIBILITY_2_4 +static inline wxChar* copystring(const wxChar* s) + { return wxStrcpy(new wxChar[wxStrlen(s) + 1], s); } +#endif + extern "C" void add_expr(char *); extern "C" void LexFromFile(FILE *fd); extern "C" void LexFromString(char *buf); @@ -104,8 +109,8 @@ extern "C" void LexFromString(char *buf); #define yytext PROIO_yytext #endif -extern "C" WXDLLEXPORT_DATA(FILE*) yyin; -extern "C" WXDLLEXPORT int yyparse(void); +extern "C" WXDLLIMPEXP_DATA_DEPRECATED(FILE*) yyin; +extern "C" WXDLLIMPEXP_DEPRECATED int yyparse(void); wxExprDatabase *thewxExprDatabase = NULL;