diff --git a/xlhtml/support.c b/xlhtml/support.c
index e8a288d..b1213b6 100644
--- a/xlhtml/support.c
+++ b/xlhtml/support.c
@@ -3,11 +3,13 @@
#include
#include "support.h"
+#include "version.h"
+
void print_version(void)
{
- printf("xlhtml \nCopyright (c) 1999-2002, Charles Wyble\n"
- "Released under GPL.\n");
+ printf("xlhtml %s \nCopyright (c) 1999-2002, Charles Wyble\n"
+ "Released under GPL.\n", VERSION );
exit(1);
}
diff --git a/xlhtml/version.h b/xlhtml/version.h
new file mode 100644
index 0000000..ebf2fc8
--- /dev/null
+++ b/xlhtml/version.h
@@ -0,0 +1,2 @@
+
+#define VERSION "0.4.9.3"
diff --git a/xlhtml/xlhtml.h b/xlhtml/xlhtml.h
index 6f3086c..221a85c 100644
--- a/xlhtml/xlhtml.h
+++ b/xlhtml/xlhtml.h
@@ -17,6 +17,7 @@
#include /* For fabs() */
#include /* For isprint() */
#include
+#include "version.h"
/* Used by packed string array Opcode: 0xFC */
#define HARD_MAX_ROWS_97 0x7FFE /*!< Used in add_wb_array to prevent OOM */
@@ -29,9 +30,6 @@ U16 HARD_MAX_ROWS = HARD_MAX_ROWS_97;
* Don't change anything below here...
*
************************************/
-#if defined( __WIN32__ ) || defined( __BORLANDC__ )
-#define VERSION "0.4.9.1"
-#endif
#define PRGNAME "xlhtml"
#define WBUFF_SIZE 8240 /*!< The working buffer. SB 522+10+4(header) bytes minimum = 536 */
#define MAX_COLORS 65 /*!< This is the size of the built-in color table */
@@ -43,3 +41,4 @@ U16 HARD_MAX_ROWS = HARD_MAX_ROWS_97;
#else
#define GLOBAL_UMASK (2)
#endif
+