freebsd-ports/graphics/py-gdchart/files/patch-gdc_py.c
Hye-Shik Chang 3d6912db85 Fix build for gcc 3.4.
Spotted by:	kris
2004-08-14 05:17:02 +00:00

21 lines
364 B
C

--- gdc_py.c.orig Mon Feb 25 19:36:07 2002
+++ gdc_py.c Sat Aug 14 14:16:15 2004
@@ -26,6 +26,9 @@
#include <stdio.h>
#include <string.h>
#include <assert.h>
+#include <limits.h>
+#define MAXSHORT SHRT_MAX
+#define HAVE_JPEG 1
#include "Python.h"
#include "cStringIO.h"
@@ -1327,8 +1330,6 @@
}
break;
}
-
- default:
} // switch
opt++;