projects
/
oweals
/
cde.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bodgy fix to not being able to find RADIXCHAR define, use '.' instead.
[oweals/cde.git]
/
cde
/
lib
/
DtSvc
/
DtUtil2
/
XlationSvc.c
diff --git
a/cde/lib/DtSvc/DtUtil2/XlationSvc.c
b/cde/lib/DtSvc/DtUtil2/XlationSvc.c
index 9570212224fd5a4a5256a15915b20d6f8c52199f..4d7dc3dd488da48cc83338761ee808a5eaa2d9ff 100644
(file)
--- 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
#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));
sprintf(buf,"%s%s%s", STR(OSMAJORVERSION),
nl_langinfo(RADIXCHAR), STR(OSMINORVERSION));
+#endif
*ret_XlateCompiledForOSVersion = (int) (100.0 * atof(buf));
compver = *ret_XlateCompiledForOSVersion;
*ret_XlateCompiledForOSVersion = (int) (100.0 * atof(buf));
compver = *ret_XlateCompiledForOSVersion;