From c5e2bbdd1e8ba6efe469c24a366c86cb86f05153 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Sun, 11 Mar 2012 18:08:03 +0000 Subject: [PATCH] Bodgy fix to not being able to find RADIXCHAR define, use '.' instead. Come back to this later. --- cde/lib/DtSvc/DtUtil2/XlationSvc.c | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.25.1