summaryrefslogtreecommitdiff
path: root/Build/source/libs/gd/libgd-src/src/gd.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/gd/libgd-src/src/gd.h')
-rw-r--r--Build/source/libs/gd/libgd-src/src/gd.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/Build/source/libs/gd/libgd-src/src/gd.h b/Build/source/libs/gd/libgd-src/src/gd.h
index bdc479c9275..cf60be3ad85 100644
--- a/Build/source/libs/gd/libgd-src/src/gd.h
+++ b/Build/source/libs/gd/libgd-src/src/gd.h
@@ -2,6 +2,7 @@
extern "C" {
#endif
+#include <stdlib.h>
#ifndef GD_H
#define GD_H 1
@@ -11,8 +12,8 @@ extern "C" {
* whitespace, take the form GD_*_VERSION and contain the magical
* trailing comment. */
#define GD_MAJOR_VERSION 2 /*version605b5d1778*/
-#define GD_MINOR_VERSION 1 /*version605b5d1778*/
-#define GD_RELEASE_VERSION 1 /*version605b5d1778*/
+#define GD_MINOR_VERSION 2 /*version605b5d1778*/
+#define GD_RELEASE_VERSION 3 /*version605b5d1778*/
#define GD_EXTRA_VERSION "" /*version605b5d1778*/
/* End parsable section. */
@@ -65,7 +66,7 @@ extern "C" {
# define BGD_STDCALL
# define BGD_EXPORT_DATA_IMPL
#else
-# ifdef HAVE_VISIBILITY
+# if defined(HAVE_VISIBILITY) && HAVE_VISIBILITY==1
# define BGD_EXPORT_DATA_PROT __attribute__ ((visibility ("default")))
# define BGD_EXPORT_DATA_IMPL __attribute__ ((visibility ("hidden")))
# else
@@ -88,9 +89,9 @@ extern "C" {
# ifndef strcasecmp
# define strcasecmp _stricmp
# endif
-# ifndef snprintf
-# define snprintf _snprintf
-# endif
+#if _MSC_VER < 1900
+ extern int snprintf(char*, size_t, const char*, ...);
+#endif
#endif
#ifdef __cplusplus
@@ -207,6 +208,7 @@ enum gdPaletteQuantizationMethod {
* GD_SINC - Sinc
* GD_TRIANGLE - Triangle
* GD_WEIGHTED4 - 4 pixels weighted bilinear interpolation
+ * GD_LINEAR - bilinear interpolation
*
* See also:
* <gdSetInterpolationMethod>
@@ -234,7 +236,8 @@ typedef enum {
GD_SINC,
GD_TRIANGLE,
GD_WEIGHTED4,
- GD_METHOD_COUNT = 21
+ GD_LINEAR,
+ GD_METHOD_COUNT = 23
} gdInterpolationMethod;
/* define struct with name and func ptr and add it to gdImageStruct gdInterpolationMethod interpolation; */