mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-12-12 14:37:43 +00:00
Avoid MinGW warnings about redefinition of snprintf.
gdb/python/python-internal.h (HAVE_SNPRINTF) [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings about redefinition of snprintf by pyerrors.h.
This commit is contained in:
parent
72edb7c28f
commit
1cdd32326f
@ -1,3 +1,9 @@
|
||||
2013-03-17 Eli Zaretskii <eliz@gnu.org>
|
||||
|
||||
* python/python-internal.h (HAVE_SNPRINTF)
|
||||
[_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
|
||||
about redefinition of snprintf by pyerrors.h.
|
||||
|
||||
2013-03-15 Steve Ellcey <sellcey@mips.com>
|
||||
|
||||
* remote-sim.c (sim_command_completer): Make char arguments const.
|
||||
|
@ -41,6 +41,11 @@
|
||||
around technique as above. */
|
||||
#undef _FILE_OFFSET_BITS
|
||||
|
||||
/* A kludge to avoid redefinition of snprintf on Windows by pyerrors.h. */
|
||||
#if defined(_WIN32) && defined(HAVE_DECL_SNPRINTF)
|
||||
#define HAVE_SNPRINTF 1
|
||||
#endif
|
||||
|
||||
/* Request clean size types from Python. */
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user