Subject: bug#6989: closed (Re: bug#6989: 24.0.50; w32.c:99: error: redefinition of `struct _PROCESS_MEMORY_COUNTERS_EX')

From: [email-masked] (GNU bug Tracking System)
Date: Fri, 17 Sep 2010 21:38:01 +0000

Your bug report

#6989: 24.0.50; w32.c:99: error: redefinition of `struct _PROCESS_MEMORY_COUNTERS_EX'

which was filed against the emacs,w32 package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
6989: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6989
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#6989: 24.0.50; w32.c:99: error: redefinition of `struct _PROCESS_MEMORY_COUNTERS_EX'
From: Eli Zaretskii <[email-masked]>
To: Stephen Powell <[email-masked]>
Cc: [email-masked]
Date: Fri, 17 Sep 2010 23:38:48 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

> Date: Tue, 07 Sep 2010 10:41:48 +0100
> From: Stephen Powell <[email-masked]>
> CC: [email-masked], [email-masked]
> 
> Eli Zaretskii <[email-masked]> writes:
> 
> > Thanks.  One more question: is it true that w32api 3.14 didn't have
> > this typedef in psapi.h, and 3.15 introduced it?
> 
> According to the cvs log the upstream change was introduced here
> <http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/w32api/ChangeLog?rev=1.1055&cvsroot=src>
> :
> 
> 2010-06-28 Rick Rankin <[email-masked]>
> 
> 	* include/psapi.h (PROCESS_MEMORY_COUNTERS_EX, PERFORMANCE_INFORMATION,
> 	GetPerformanceInfo): Define.
> 	* lib/psapi.def (GetPerformanceInfo): Define.
> 	* include/wincrypt.h (CryptEnumProvidersA, CryptEnumProvidersW,
> 	CryptEnumProviders): Define.

Thanks.  This should now be fixed (revno 101465).  Please try it, and
if the problem still persists, reopen this bug report.

Subject: 24.0.50; w32.c:99: error: redefinition of `struct _PROCESS_MEMORY_COUNTERS_EX'
From: Stephen Powell <[email-masked]>
To: [email-masked]
Date: Mon, 06 Sep 2010 01:55:19 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

I get this error when compiling emacs under cygwin:

w32.c:99: error: redefinition of `struct _PROCESS_MEMORY_COUNTERS_EX'

This is the code in w32.c:

#include <psapi.h>
/* This either is not in psapi.h or guarded by higher value of
   _WIN32_WINNT than what we use.  */
typedef struct _PROCESS_MEMORY_COUNTERS_EX {

However since the update of w32api-3.15-1
<http://cygwin.com/ml/cygwin-announce/2010-08/msg00033.html>
on the 28 August struct _PROCESS_MEMORY_COUNTERS_EX is defined.

In GNU Emacs 24.0.50.1 (i386-mingw-nt6.0.6002)
 of 2010-09-02 on STEVEP-PC
Windowing system distributor `Microsoft Corp.', version 6.0.6002
configured using `configure --with-gcc (3.4)'