emacs-devel
[Top][All Lists]
Advanced

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

Re: windows build failure


From: rzl24ozi
Subject: Re: windows build failure
Date: Wed, 29 May 2013 22:15:58 +0900
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (cygwin)

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).

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

Macro-expanded nt/inc/sys/time.h look like as below.

        :
# 33 "w32.c" 2
# 1 "../nt/inc/sys/time.h" 1
# 16 "../nt/inc/sys/time.h"
struct timeval
{
  long tv_sec;
  long tv_usec;
};
# 31 "../nt/inc/sys/time.h"
struct timezone
{
  int tz_minuteswest;
  int tz_dsttime;
};





int gettimeofday (struct timeval *restrict, struct timezone *restrict);




struct itimerval
{
  struct timeval it_interval;
  struct timeval it_value;
};

int getitimer (int, struct itimerval *);
int setitimer (int, struct itimerval *, struct itimerval *);
# 34 "w32.c" 2
        :



reply via email to

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