X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/004fd0c8834ca526d335a9294322d9def17ef8a9..0f05afccede840e04872bfc82103b689b8edc447:/src/common/doslex.c diff --git a/src/common/doslex.c b/src/common/doslex.c index 94234160cb..be7be146d1 100644 --- a/src/common/doslex.c +++ b/src/common/doslex.c @@ -145,7 +145,7 @@ int read(); } \ while ( 0 ) #else -// suppress expression always false warning +/* suppress expression always false warning */ int os2var = 0; #define YY_FATAL_ERROR(msg) \ do \ @@ -231,7 +231,7 @@ extern char *malloc(); #endif #define Return(x) return x; -#if defined(VMS) && !defined(strdup) +#if defined(VMS) && ( __VMS_VER < 70000000 ) #define strdup(s) (strcpy((char *)malloc(strlen(s)+1), s)); #endif @@ -252,7 +252,9 @@ static int my_unput(char); if ( (result = read( fileno(yyin), (char *) buf, max_size )) < 0 ) \ YY_FATAL_ERROR( "read() in flex scanner failed" ); #else -# undef unput +# ifndef unput +# undef unput +# endif # define unput(_c) my_unput(_c) #endif @@ -775,7 +777,7 @@ case YY_STATE_EOF(INITIAL): } } #if defined(__VISAGECPP__) -// VA complains about proc maybe not returning a value so return one +/* VA complains about proc maybe not returning a value so return one */ return 0; #endif }