1 #ifdef HAVE_CONFIG_H
2 #include "config.h"
3 #endif /* HAVE_CONFIG_H */
4 
5 #include "gd.h"
6 
7 
8 /* These functions return the version information.  We use functions
9  * so that changes in the shared library will automatically be
10  * reflected in executables using it without recompiling them. */
11 
12 /*
13     Function: gdMajorVersion
14 */
gdMajorVersion()15 BGD_DECLARE(int) gdMajorVersion()
16 {
17     return GD_MAJOR_VERSION;
18 }
19 
20 /*
21     Function: gdMinorVersion
22 */
gdMinorVersion()23 BGD_DECLARE(int) gdMinorVersion()
24 {
25     return GD_MINOR_VERSION;
26 }
27 
28 /*
29     Function: gdReleaseVersion
30 */
gdReleaseVersion()31 BGD_DECLARE(int) gdReleaseVersion()
32 {
33     return GD_RELEASE_VERSION;
34 }
35 
36 /*
37     Function: gdExtraVersion
38 */
gdExtraVersion()39 BGD_DECLARE(const char *) gdExtraVersion() {
40     return GD_EXTRA_VERSION;
41 }
42 
43 /*
44     Function: gdVersionString
45 */
gdVersionString()46 BGD_DECLARE(const char *) gdVersionString() {
47     return GD_VERSION_STRING;
48 }
49