From: Peter Howkins Date: Sun, 11 Mar 2012 18:08:03 +0000 (+0000) Subject: Bodgy fix to not being able to find RADIXCHAR define, use '.' instead. X-Git-Tag: 2.2.0a~26^2~146 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c5e2bbdd1e8ba6efe469c24a366c86cb86f05153;p=oweals%2Fcde.git Bodgy fix to not being able to find RADIXCHAR define, use '.' instead. Come back to this later. --- diff --git a/cde/lib/DtSvc/DtUtil2/XlationSvc.c b/cde/lib/DtSvc/DtUtil2/XlationSvc.c index 95702122..4d7dc3dd 100644 --- a/cde/lib/DtSvc/DtUtil2/XlationSvc.c +++ b/cde/lib/DtSvc/DtUtil2/XlationSvc.c @@ -2250,8 +2250,13 @@ int _DtXlateGetXlateEnv( #error OSMAJORVERSION and/or OSMINORVERSION not defined #endif +#if defined(linux) + sprintf(buf,"%s%s%s", STR(OSMAJORVERSION), + nl_langinfo('.'), STR(OSMINORVERSION)); +#else sprintf(buf,"%s%s%s", STR(OSMAJORVERSION), nl_langinfo(RADIXCHAR), STR(OSMINORVERSION)); +#endif *ret_XlateCompiledForOSVersion = (int) (100.0 * atof(buf)); compver = *ret_XlateCompiledForOSVersion;