Fix Python 3 build error on 32-bit hosts
[deliverable/binutils-gdb.git] / gdb / python / python-internal.h
index 0ee85440fb436de496424ccdc7c7eee472bd6c1f..a77f5a662671c32afce921ed5d18a9c9c421c935 100644 (file)
@@ -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.  */
This page took 0.023235 seconds and 4 git commands to generate.