X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fpython%2Fpython-internal.h;h=a77f5a662671c32afce921ed5d18a9c9c421c935;hb=881d5d5db08ee6b343e1f1fc560d785fed29428e;hp=544fe932af8a572d18fff45556b72c2df431459a;hpb=6dddd6a5747532ef6e9703432c51680011df4e8d;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h index 544fe932af..a77f5a6626 100644 --- a/gdb/python/python-internal.h +++ b/gdb/python/python-internal.h @@ -1,6 +1,6 @@ /* Gdb/Python header for private use by Python module. - Copyright (C) 2008-2014 Free Software Foundation, Inc. + Copyright (C) 2008-2015 Free Software Foundation, Inc. This file is part of GDB. @@ -169,6 +169,10 @@ typedef unsigned long gdb_py_ulongest; #endif /* HAVE_LONG_LONG */ +#if PY_VERSION_HEX < 0x03020000 +typedef long Py_hash_t; +#endif + /* Python 2.6 did not wrap Py_DECREF in 'do {...} while (0)', leading to 'suggest explicit braces to avoid ambiguous ‘else’' gcc errors. Wrap it ourselves, so that callers don't need to care. */