catacomb.c: Use a less awful version comparison.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 20 Oct 2019 20:03:38 +0000 (21:03 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 10 Apr 2020 21:42:39 +0000 (22:42 +0100)
catacomb.c

index bf68727..b54227f 100644 (file)
@@ -158,7 +158,7 @@ static PyMethodDef methods[] = {
 
 static void init_random(void)
 {
-#if PY_MAJOR_VERSION >= 3 || (PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION >= 6)
+#if PY_VERSION_HEX >= 0x02060000
   char *seed;
   uint32 r;