]> git.sesse.net Git - vlc/blobdiff - bindings/python/vlc_internal.h
macosx: Align the buttons.
[vlc] / bindings / python / vlc_internal.h
index f798690addc522c048660982d389c93e9d366807..66367605b0c773421764006f5f40ae135312fd48 100644 (file)
@@ -2,7 +2,7 @@
  * vlc_internal.h: Header for the Python vlcinternal binding
  *****************************************************************************
  * Copyright (C) 1998-2004 the VideoLAN team
- * $Id:$
+ * $Id$
  *
  * Authors: Olivier Aubert <oaubert at bat710.univ-lyon1.fr>
  *
 /* Even gruiker ! We access variable_t ! */
 #include "../../src/misc/variables.h"
 
+/* Python 2.5 64-bit support compatibility define */
+#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)
+typedef int Py_ssize_t;
+#define PY_SSIZE_T_MAX INT_MAX
+#define PY_SSIZE_T_MIN INT_MIN
+#endif
+
 /**********************************************************************
  * VLC Object
  **********************************************************************/