diff Modules/_struct.c @ 56244:1a65ddd7d9e1 2.6

Fix compiler warning about unused function.
author Mark Dickinson <dickinsm@gmail.com>
date Sun, 27 Sep 2009 16:32:34 +0000
parents 99e30af41169
children 9ed8991a9141
line wrap: on
line diff
--- a/Modules/_struct.c	Sun Sep 27 16:17:37 2009 +0000
+++ b/Modules/_struct.c	Sun Sep 27 16:32:34 2009 +0000
@@ -182,6 +182,8 @@
 
 /* Same, but handling unsigned long */
 
+#ifndef PY_STRUCT_OVERFLOW_MASKING
+
 static int
 get_ulong(PyObject *v, unsigned long *p)
 {
@@ -202,6 +204,8 @@
 	return 0;
 }
 
+#endif /* PY_STRUCT_OVERFLOW_MASKING */
+
 #ifdef HAVE_LONG_LONG
 
 /* Same, but handling native long long. */