]> granicus.if.org Git - python/commitdiff
Fix compiler warning about unused function.
authorMark Dickinson <dickinsm@gmail.com>
Sun, 27 Sep 2009 16:32:34 +0000 (16:32 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Sun, 27 Sep 2009 16:32:34 +0000 (16:32 +0000)
Modules/_struct.c

index 9c45dbe31bd660e192df36aac48450980357cda9..e567627c976592d0b785c023e1481e304d8d31de 100644 (file)
@@ -182,6 +182,8 @@ get_long(PyObject *v, long *p)
 
 /* Same, but handling unsigned long */
 
+#ifndef PY_STRUCT_OVERFLOW_MASKING
+
 static int
 get_ulong(PyObject *v, unsigned long *p)
 {
@@ -202,6 +204,8 @@ get_ulong(PyObject *v, unsigned long *p)
        return 0;
 }
 
+#endif /* PY_STRUCT_OVERFLOW_MASKING */
+
 #ifdef HAVE_LONG_LONG
 
 /* Same, but handling native long long. */