aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.c b/main.c
index 2a7fbc20..9ea76cdf 100644
--- a/main.c
+++ b/main.c
@@ -1129,6 +1129,11 @@ load_procinfo()
update_PROCINFO_num("prec_min", MPFR_PREC_MIN);
#endif
+#ifdef DYNAMIC
+ update_PROCINFO_num("api_major", GAWK_API_MAJOR_VERSION);
+ update_PROCINFO_num("api_minor", GAWK_API_MINOR_VERSION);
+#endif
+
#ifdef GETPGRP_VOID
#define getpgrp_arg() /* nothing */
#else