--- parser3/src/targets/cgi/parser3.C 2001/11/19 08:00:34 1.138 +++ parser3/src/targets/cgi/parser3.C 2001/11/21 08:34:43 1.142 @@ -4,13 +4,16 @@ Copyright(c) 2001 ArtLebedev Group(http://www.artlebedev.com) Author: Alexander Petrosyan (http://paf.design.ru) - $Id: parser3.C,v 1.138 2001/11/19 08:00:34 paf Exp $ + $Id: parser3.C,v 1.142 2001/11/21 08:34:43 paf Exp $ */ #include "pa_config_includes.h" #ifdef WIN32 # include +#endif + +#if _MSC_VER # include #endif @@ -298,7 +301,7 @@ void real_parser_handler( // prepare to process request Request request(pool, request_info, - cgi ? String::UL_OPTIMIZED_HTML : String::UL_AS_IS, + cgi ? String::UL_HTML|String::UL_OPTIMIZE_BIT : String::UL_AS_IS, true /* status_allowed */); // some root-controlled location @@ -379,7 +382,7 @@ void call_real_parser_handler__do_SEH( #endif } -#ifdef WIN32 +#if _MSC_VER int failed_new(size_t size) { SAPI::die("out of memory in 'new', failed to allocated %u bytes", size); return 0; // not reached @@ -423,7 +426,7 @@ int main(int argc, char *argv[]) { setmode(fileno(stderr), _O_BINARY); #endif -#ifdef WIN32 +#if _MSC_VER _set_new_handler(failed_new); #endif