meson: fix strtof locale support check
authorEric Engestrom <eric.engestrom@imgtec.com>
Tue, 21 Nov 2017 14:24:01 +0000 (14:24 +0000)
committerEric Engestrom <eric.engestrom@imgtec.com>
Thu, 23 Nov 2017 09:44:16 +0000 (09:44 +0000)
Fixes: d1992255bb29054fa5176 "meson: Add build Intel "anv" vulkan driver"
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
meson.build

index 6c273ed..53013e4 100644 (file)
@@ -619,7 +619,7 @@ if cc.links('''
       const char *s = "1.0";
       char *end;
       double d = strtod_l(s, end, loc);
-      float f = strtod_l(s, end, loc);
+      float f = strtof_l(s, end, loc);
       freelocale(loc);
       return 0;
     }''',