X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c67daf87774c71ae9f73af9969008af220e52a11..33a5bc5299a068b4d6a313a7dc830a74edb5780a:/include/wx/wxexpr.h diff --git a/include/wx/wxexpr.h b/include/wx/wxexpr.h index 480ecbc2a4..1135438fbd 100644 --- a/include/wx/wxexpr.h +++ b/include/wx/wxexpr.h @@ -21,10 +21,13 @@ #include "wx/defs.h" #include "wx/string.h" -#if USE_IOSTREAMH +#if wxUSE_IOSTREAMH #include #else #include +# ifdef _MSC_VER + using namespace std; +# endif #endif #include "wx/list.h" @@ -56,9 +59,9 @@ typedef bool (*wxExprErrorHandler) (int errorType, char *msg); WXDLLEXPORT_DATA(extern wxExprErrorHandler) currentwxExprErrorHandler; -WXDLLEXPORT_DATA(extern "C" FILE*) yyin; +extern "C" WXDLLEXPORT_DATA(FILE*) yyin; -extern "C" int WXDLLEXPORT yyparse(void); +extern "C" WXDLLEXPORT int yyparse(void); typedef enum { wxExprNull, @@ -260,7 +263,7 @@ class WXDLLEXPORT wxExprDatabase: public wxList // Function call-style interface - some more convenience wrappers/unwrappers // Make a call -wxExpr* WXDLLEXPORT wxExprMakeCall(const wxString& functor ...); +WXDLLEXPORT wxExpr* wxExprMakeCall(const wxString& functor ...); #define wxExprMakeInteger(x) (new wxExpr((long)x)) #define wxExprMakeReal(x) (new wxExpr((double)x)) @@ -269,13 +272,13 @@ wxExpr* WXDLLEXPORT wxExprMakeCall(const wxString& functor ...); #define wxExprMake(x) (new wxExpr(x)) // Checks functor -bool WXDLLEXPORT wxExprIsFunctor(wxExpr *expr, const wxString& functor); +WXDLLEXPORT bool wxExprIsFunctor(wxExpr *expr, const wxString& functor); // Temporary variable for communicating between wxexpr.cpp and YACC/LEX WXDLLEXPORT_DATA(extern wxExprDatabase*) thewxExprDatabase; // YACC/LEX can leave memory lying around... -extern "C" int WXDLLEXPORT wxExprCleanUp(); +extern "C" WXDLLEXPORT int wxExprCleanUp(); #endif