summaryrefslogtreecommitdiff
path: root/src/gd_jpeg.c
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2018-09-06 16:24:45 +0200
committerMike Frysinger <vapier@gmail.com>2018-09-08 03:29:27 -0400
commit5dc2dd8b49520c9c8a59798a03553a7e88d94072 (patch)
tree298c7f23a0e75e31825165f78adf5a7681143235 /src/gd_jpeg.c
parentd8ead0b8e0470a70f4d67fbc391b24471cdd405a (diff)
downloadlibgd-5dc2dd8b49520c9c8a59798a03553a7e88d94072.tar.gz
Remove HAVE_STDLIB_H
The C89 and later standard defines the `<stdlib.h>` header as part of the standard headers [1] and on current systems it is always present and the `HAVE_STDLIB_H` symbol can be removed. Also Autoconf suggests doing this and relying on C89 or above [2] and [3]. [1] https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2 [2] http://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4 [3] https://www.gnu.org/software/autoconf/manual/autoconf-2.69/autoconf.html
Diffstat (limited to 'src/gd_jpeg.c')
-rw-r--r--src/gd_jpeg.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/gd_jpeg.c b/src/gd_jpeg.c
index b5368ea..fc05842 100644
--- a/src/gd_jpeg.c
+++ b/src/gd_jpeg.c
@@ -47,11 +47,6 @@
# define HAVE_BOOLEAN
#endif
-/* JCE undef symbols that we don't need anymore but which are
- may be defined in config.h from ./configure but which are
- redefined incompatibly in jpeglib.h */
-#undef HAVE_STDLIB_H
-
/* 1.8.1: remove dependency on jinclude.h */
#include "jpeglib.h"
#include "jerror.h"