comparison src/locale.c @ 30310:029c59bf78f1 v9.0.0491

patch 9.0.0491: no good reason to build without the float feature Commit: https://github.com/vim/vim/commit/73e28dcc6125f616cf1f2d56443d22428a79e434 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Sep 17 21:08:33 2022 +0100 patch 9.0.0491: no good reason to build without the float feature Problem: No good reason to build without the float feature. Solution: Remove configure check for float and "#ifdef FEAT_FLOAT".
author Bram Moolenaar <Bram@vim.org>
date Sat, 17 Sep 2022 22:15:05 +0200
parents df2de1e63de0
children 238ca27dbfd2
comparison
equal deleted inserted replaced
30309:4ba3d27b5357 30310:029c59bf78f1
223 223
224 # ifdef FEAT_GUI_GTK 224 # ifdef FEAT_GUI_GTK
225 // Tell Gtk not to change our locale settings. 225 // Tell Gtk not to change our locale settings.
226 gtk_disable_setlocale(); 226 gtk_disable_setlocale();
227 # endif 227 # endif
228 # if defined(FEAT_FLOAT) && defined(LC_NUMERIC) 228 # if defined(LC_NUMERIC)
229 // Make sure strtod() uses a decimal point, not a comma. 229 // Make sure strtod() uses a decimal point, not a comma.
230 setlocale(LC_NUMERIC, "C"); 230 setlocale(LC_NUMERIC, "C");
231 # endif 231 # endif
232 232
233 # ifdef MSWIN 233 # ifdef MSWIN
331 loc = ""; 331 loc = "";
332 else 332 else
333 # endif 333 # endif
334 { 334 {
335 loc = setlocale(what, (char *)name); 335 loc = setlocale(what, (char *)name);
336 # if defined(FEAT_FLOAT) && defined(LC_NUMERIC) 336 # if defined(LC_NUMERIC)
337 // Make sure strtod() uses a decimal point, not a comma. 337 // Make sure strtod() uses a decimal point, not a comma.
338 setlocale(LC_NUMERIC, "C"); 338 setlocale(LC_NUMERIC, "C");
339 # endif 339 # endif
340 } 340 }
341 if (loc == NULL) 341 if (loc == NULL)