James Vega wrote:
> > Similar with VC8:
> >
> > fileio.c(10306) : error C2143: syntax error : missing ')' before '('
> > fileio.c(10306) : error C2143: syntax error : missing ')' before '('
> > fileio.c(10306) : error C2091: function returns function
> > fileio.c(10306) : error C2091: function returns function
> > fileio.c(10306) : error C2059: syntax error : ')'
> > fileio.c(10306) : error C2373: 'read' : redefinition; different type
> > modifiers
> > =C2=A0 =C2=A0 =C2=A0 =C2=A0H:\Program Files\Microsoft Visual Studio 8\VC\=
> INCLUDE\io.h(329) : see
> > declaration of 'read'
> > fileio.c(10306) : error C2059: syntax error : 'type'
> > fileio.c(10310) : error C2449: found '{' at file scope (missing function
> > header?)
> > fileio.c(10320) : error C2059: syntax error : '}'
> > fileio.c(10330) : error C2449: found '{' at file scope (missing function
> > header?)
> > fileio.c(10348) : error C2059: syntax error : '}'
> > fileio.c(10348) : error C2014: preprocessor command must start as first
> > nonwhite space
> > fileio.c(10350) : fatal error C1070: mismatched #if/#endif pair in file
> > 'h:\vim\vim\src\fileio.c'
> >
> > A quick look shows that macros for read_eintr and write_eintr are being
> > defined as well as trying to compiler the code for them. =C2=A0So in vim.=
> h EINTR
> > is undefined and in fileio.c it is undefined. =C2=A0Not a good idea.
>
> EINTR is defined by errno.h. Attached patch moves include of errno.h to
> the relevant os_win*.h from the respective os_win*.c files. The former
> are included in vim.h, so EINTR will be defined before trying to define
> the read_eintr/write_eintr macros.
I solved it in a more drastic way, including errno.h in vim.h instead of
in several places scattered throught the code.
Let me know if there still is a problem.
--
In many of the more relaxed civilizations on the Outer Eastern Rim of the
Galaxy, "The Hitchhiker's Guide to the Galaxy" has already supplanted the
great "Encyclopedia Galactica" as the standard repository of all knowledge
and wisdom, for though it has many omissions and contains much that is
apocryphal, or at least wildly inaccurate, it scores over the older, more
pedestrian work in two important respects.
First, it is slightly cheaper; and second, it has the words "DON'T PANIC"
inscribed in large friendly letters on its cover.
-- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php