emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: windows build failure


From: Eli Zaretskii
Subject: Re: windows build failure
Date: Wed, 29 May 2013 18:21:55 +0300

> From: address@hidden
> Date: Wed, 29 May 2013 22:15:58 +0900
> 
> Sean Sieger <address@hidden> writes:
> > In file included from w32.c:33:0:
> > ../nt/inc/sys/time.h:41:62: error: conflicting types for 'restrict'
> > ../nt/inc/sys/time.h:41:35: note: previous definition of 'restrict'
> > was here
> > make[3]: *** [oo-spd/i386/w32.o] Error 1
>     :
> 
> When I try to build with non-Posix build method (run configure.bat and
> make bootstrap under nt/ directory), got same error.
> 
> gcc version is TDM-GCC 4.7.1 32bit 
> (http://sourceforge.net/projects/tdm-gcc/files/TDM-GCC%20Installer/tdm-gcc-4.7.1-2.exe/download).

I built that version with GCC 4.7.2 from mingw.org, and didn't get the
problem.

> It looks like that 'restrict' in the prototype of gettimeofday() is
> considered as variable name.

That part is clear from the error message.  What is less clear is why
does that happen.  'restrict' is a keyword in C, so unless the
compiler has a bug, I don't understand why it barfs.  Maybe I'm
missing something here.

If you type this:

  cpp -dM < nul | fgrep restrict

what do you see?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]