mirror of
https://github.com/apache/nuttx.git
synced 2026-09-26 18:16:27 +08:00
compiler: redefine float and double when disable float compiling
Build Documentation / build-html (push) Has been cancelled
Build Documentation / build-html (push) Has been cancelled
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:
@@ -1353,6 +1353,8 @@
|
||||
# undef CONFIG_HAVE_FLOAT
|
||||
# undef CONFIG_HAVE_DOUBLE
|
||||
# undef CONFIG_HAVE_LONG_DOUBLE
|
||||
# define float int
|
||||
# define double long
|
||||
#endif
|
||||
|
||||
/* Decorators */
|
||||
|
||||
Reference in New Issue
Block a user