This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA/win32] Avoid a couple of name collisions in win32-nat.c


On Wed, Jan 07, 2009 at 03:24:22PM +0400, Joel Brobecker wrote:
>This patch simply renames a couple of global variables that are pointers
>to routines imported from kernel32.  The reason why they need to be
>renamed is that the names chosen were identical to the name in kernel32,
>and the declaration is clashing with the declaration in winbase.h.
>I followed the example of the routines imported in psapi.dll where
>the name is prefixed by psapi_.
>
>2009-01-07  Joel Brobecker  <brobecker@adacore.com>
>
>        * win32-nat.c (kernel32_DebugSetProcessKillOnExit): Renames
>        DebugSetProcessKillOnExit.  Update all uses in this file.
>        (kernel32_DebugActiveProcessStop): Renames DebugActiveProcessStop.
>        Update all uses in this file.
>
>Tested on x86-windows.
>
>OK to apply?

Ah, should have read further.  I don't understand why this is now a
problem.  What changed?

cgf


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]