This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 7d8728679d031e11f2fdaacb9fa0fb02c253dfbc
Author: Saravanan Sekar <[email protected]>
AuthorDate: Fri Oct 30 10:45:55 2026 +0530

    include/nuttx/compiler.h: Define LDBL_MANT_DIG for TASKING.
    
    The TASKING section sets CONFIG_HAVE_LONG_DOUBLE but not LDBL_MANT_DIG,
    so NuttX's own float.h stops with an error once CONFIG_LIBM is used.
    TASKING long double is double, so use 53, as the MSVC section does.
    
    Signed-off-by: Saravanan Sekar <[email protected]>
---
 include/nuttx/compiler.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/nuttx/compiler.h b/include/nuttx/compiler.h
index a44a84899cd..20ada7a7cec 100644
--- a/include/nuttx/compiler.h
+++ b/include/nuttx/compiler.h
@@ -1387,6 +1387,7 @@
 #  define CONFIG_HAVE_FLOAT             1
 #  define CONFIG_HAVE_DOUBLE            1
 #  define CONFIG_HAVE_LONG_DOUBLE       1
+#  define LDBL_MANT_DIG                 53
 
 /* Pre-processor */
 

Reply via email to