From: Vern Paxson Date: Sat, 4 Mar 1995 18:06:51 +0000 (+0000) Subject: VMS POSIX stuff X-Git-Tag: flex-2-5-5b~104 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=353e1ed00f58c655e6c9bc875e9e391b70f38b63;p=flex VMS POSIX stuff --- diff --git a/flexdef.h b/flexdef.h index 58fdd19..cc241a7 100644 --- a/flexdef.h +++ b/flexdef.h @@ -88,9 +88,11 @@ #endif #ifdef VMS +#ifndef __VMS_POSIX #define unlink remove #define SHORT_FILE_NAMES #endif +#endif #ifdef MS_DOS #define SHORT_FILE_NAMES diff --git a/main.c b/main.c index c9542ca..eb83a91 100644 --- a/main.c +++ b/main.c @@ -937,10 +937,14 @@ _( "Variable trailing context rules entail a large performance penalty\n" ) ); if ( do_stdinit ) { outn( "#ifdef VMS" ); + outn( "#ifndef __VMS_POSIX" ); outn( yy_nostdinit ); outn( "#else" ); outn( yy_stdinit ); outn( "#endif" ); + outn( "#else" ); + outn( yy_stdinit ); + outn( "#endif" ); } else