Mercurial > HandyFTP
changeset 137:6e68b08bc608
If VER_MAJ is not defined, just fill in the version as 1.0.0.
Fix building on Android, until I can figured out how to pull in the version.
author | Brian Smith <brian@dbsoft.org> |
---|---|
date | Mon, 09 Aug 2021 18:32:40 -0500 |
parents | 90e15db9bc85 |
children | e8188adebb42 |
files | src/handyftp.c |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/handyftp.c Thu Mar 25 16:54:03 2021 -0500 +++ b/src/handyftp.c Mon Aug 09 18:32:40 2021 -0500 @@ -2995,7 +2995,13 @@ param->window = infowindow; - sprintf(buffer, locale_string("HandyFTP:\r\n\r\nVersion: %d.%d.%d\r\nBuild date: %s\r\nBuild time: %s\r\n\r\n", 90), VER_MAJ, VER_MIN, VER_REV, __DATE__, __TIME__); + sprintf(buffer, locale_string("HandyFTP:\r\n\r\nVersion: %d.%d.%d\r\nBuild date: %s\r\nBuild time: %s\r\n\r\n", 90), +#ifndef VER_MAJ + 1, 0, 0, +#else + VER_MAJ, VER_MIN, VER_REV, +#endif + __DATE__, __TIME__); point = dw_mle_import(mle, buffer, point); sprintf(buffer, locale_string("System:\r\n\r\nColor depth: %lu\r\n", 91), dw_color_depth_get());