summaryrefslogtreecommitdiff
path: root/apps/interpreters/bas/value.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/interpreters/bas/value.c')
-rw-r--r--apps/interpreters/bas/value.c20
1 files changed, 6 insertions, 14 deletions
diff --git a/apps/interpreters/bas/value.c b/apps/interpreters/bas/value.c
index e4e31656b..7f7258a3b 100644
--- a/apps/interpreters/bas/value.c
+++ b/apps/interpreters/bas/value.c
@@ -60,7 +60,7 @@
* Included Files
****************************************************************************/
-#include "config.h"
+#include <nuttx/config.h>
#include <assert.h>
#include <ctype.h>
@@ -83,12 +83,6 @@
#define _(String) String
/****************************************************************************
- * Public Function Prototypes
- ****************************************************************************/
-
-extern long int lrint(double x);
-
-/****************************************************************************
* Private Data
****************************************************************************/
@@ -116,13 +110,6 @@ const enum ValueType Value_commonType[V_VOID + 1][V_VOID + 1] =
{ 0, V_ERROR, V_ERROR, V_ERROR, V_ERROR, V_ERROR, V_ERROR }
};
-#ifndef HAVE_LRINT
-long int lrint(double d)
-{
- return d;
-}
-#endif
-
/****************************************************************************
* Private Functions
****************************************************************************/
@@ -2103,3 +2090,8 @@ struct Value *Value_nullValue(enum ValueType type)
return (struct Value *)0;
}
+
+long int lrint(double d)
+{
+ return d;
+}