diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2013-01-31 20:32:31 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2013-01-31 20:32:31 +0200 |
commit | 1ff958d4fcd4d458c433c416fb119cc20e5eeba8 (patch) | |
tree | 05de6c4a99244dcc0a2369cd39accf9031517c17 /main.c | |
parent | 2630adaa89d50ee7c712e39886ecb69d36426cb5 (diff) | |
download | egawk-1ff958d4fcd4d458c433c416fb119cc20e5eeba8.tar.gz egawk-1ff958d4fcd4d458c433c416fb119cc20e5eeba8.tar.bz2 egawk-1ff958d4fcd4d458c433c416fb119cc20e5eeba8.zip |
Add API to --version output. Use it for shlib tests.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1426,6 +1426,9 @@ static void version() { printf("%s", version_string); +#ifdef DYNAMIC + printf(", API: %d.%d", GAWK_API_MAJOR_VERSION, GAWK_API_MINOR_VERSION); +#endif #ifdef HAVE_MPFR printf(" (GNU MPFR %s, GNU MP %s)", mpfr_get_version(), gmp_version); #endif |