summaryrefslogtreecommitdiff
path: root/Build/source/libs/gd/libgd-src/src/gd_version.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/gd/libgd-src/src/gd_version.c')
-rw-r--r--Build/source/libs/gd/libgd-src/src/gd_version.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/Build/source/libs/gd/libgd-src/src/gd_version.c b/Build/source/libs/gd/libgd-src/src/gd_version.c
new file mode 100644
index 00000000000..222d428ce7b
--- /dev/null
+++ b/Build/source/libs/gd/libgd-src/src/gd_version.c
@@ -0,0 +1,33 @@
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif /* HAVE_CONFIG_H */
+
+#include "gd.h"
+
+
+/* These functions return the version information. We use functions
+ * so that changes in the shared library will automatically be
+ * reflected in executables using it without recompiling them. */
+
+BGD_DECLARE(int) gdMajorVersion()
+{
+ return GD_MAJOR_VERSION;
+}
+
+BGD_DECLARE(int) gdMinorVersion()
+{
+ return GD_MINOR_VERSION;
+}
+
+BGD_DECLARE(int) gdReleaseVersion()
+{
+ return GD_RELEASE_VERSION;
+}
+
+BGD_DECLARE(const char *) gdExtraVersion() {
+ return GD_EXTRA_VERSION;
+}
+
+BGD_DECLARE(const char *) gdVersionString() {
+ return GD_VERSION_STRING;
+}