diff options
Diffstat (limited to 'gdb/python/python-internal.h')
| -rw-r--r-- | gdb/python/python-internal.h | 5 | 
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h index 753ba96..ea97226 100644 --- a/gdb/python/python-internal.h +++ b/gdb/python/python-internal.h @@ -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  | 
