compiler: redefine float and double when disable float compiling

Redefine float and double on devices that do not support floating-point.
float  ==> int
double ==> long

Signed-off-by: yangsong8 <yangsong8@xiaomi.com>
This commit is contained in:
yangsong8
2025-02-26 19:51:58 +08:00
committed by Xiang Xiao
parent e8ec88e2c4
commit 22caa84417
+2
View File
@@ -1355,6 +1355,8 @@
# undef CONFIG_HAVE_FLOAT
# undef CONFIG_HAVE_DOUBLE
# undef CONFIG_HAVE_LONG_DOUBLE
# define float int
# define double long
#endif
/* Decorators */