--- parser3/src/include/pa_common.h 2001/03/13 18:32:46 1.10 +++ parser3/src/include/pa_common.h 2001/03/14 09:02:51 1.12 @@ -3,21 +3,31 @@ Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) Author: Alexander Petrosyan (http://design.ru/paf) - $Id: pa_common.h,v 1.10 2001/03/13 18:32:46 paf Exp $ + $Id: pa_common.h,v 1.12 2001/03/14 09:02:51 paf Exp $ */ #ifndef PA_COMMON_H #define PA_COMMON_H +#include "pa_config.h" + #include #include "pa_pool.h" + #ifdef WIN32 + +#define open _open +#define close _close +#define read _read +#define stat _stat + #define vsnprintf __vsnprintf #define snprintf __snprintf int __vsnprintf(char *, size_t, const char *, va_list); int __snprintf(char *, size_t, const char *, ...); + #endif char *file_read(Pool& pool, const char *fname, bool fail_on_read_problem=true); @@ -32,5 +42,6 @@ inline int max(int a,int b) { return a>b inline int min(int a,int b){ return a