The best solution seems to be to always declare longVersion in
version.c, and always declare it extern in globals.h. Otherwise the
#ifdef gets complicated.
// These are in version.c, call init_longVersion() before use.
extern char *Version;
#if defined(HAVE_DATE_TIME) && defined(VMS) && defined(VAXC)
extern char longVersion[];
#else
extern char *longVersion;
#endif
Besides the change in globals.h, we also need to declare longVersion in
version.c for the case HAVE_DATE_TIME is defined but VMS is not.
strcat(longVersion, ")");
}
# else
char *longVersion = NULL;
void
init_longVersion(void)
{
if (longVersion == NULL)
--
hundred-and-one symptoms of being an internet addict:
30. Even though you died last week, you've managed to retain OPS on your
favorite IRC channel.
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///