Cesanta / v7 Featured

Embedded JavaScript virtual machine

Dependents:   DISCO-F469NI_javascript_blinker

Files at this revision

API Documentation at this revision

Comitter:
Marko Mikulicic
Date:
Tue Oct 11 14:30:58 2016 +0200
Parent:
2:7762b98d31c7
Commit message:
Fix armcc build

armcc toolchain seems to lack sys/time.h, disabling the JS Date feature
for now.

Changed in this revision

v7.c Show annotated file Show diff for this revision Revisions of this file
v7.h Show annotated file Show diff for this revision Revisions of this file
--- a/v7.c	Tue Oct 11 12:22:24 2016 +0200
+++ b/v7.c	Tue Oct 11 14:30:58 2016 +0200
@@ -1853,6 +1853,23 @@
 
 #endif /* CS_V7_SRC_V7_FEATURES_H_ */
 #ifdef V7_MODULE_LINES
+#line 1 "v7/src/platform.h"
+#endif
+/*
+ * Copyright (c) 2014 Cesanta Software Limited
+ * All rights reserved
+ */
+
+#ifndef CS_V7_SRC_PLATFORM_H_
+#define CS_V7_SRC_PLATFORM_H_
+
+#ifdef __arm
+#undef V7_ENABLE__Date
+#define V7_ENABLE__Date 0
+#endif
+
+#endif /* CS_V7_SRC_PLATFORM_H_ */
+#ifdef V7_MODULE_LINES
 #line 1 "v7/src/internal.h"
 #endif
 /*
@@ -1942,6 +1959,7 @@
 #endif
 
 /* Amalgamated: #include "v7/src/v7_features.h" */
+/* Amalgamated: #include "v7/src/platform.h" */
 
 /* MSVC6 doesn't have standard C math constants defined */
 #ifndef M_E
@@ -2041,6 +2059,7 @@
 
 /* Amalgamated: #include "v7/src/license.h" */
 /* Amalgamated: #include "v7/src/v7_features.h" */
+/* Amalgamated: #include "v7/src/platform.h" */
 
 #include <stddef.h> /* For size_t */
 #include <stdio.h>  /* For FILE */
--- a/v7.h	Tue Oct 11 12:22:24 2016 +0200
+++ b/v7.h	Tue Oct 11 14:30:58 2016 +0200
@@ -182,6 +182,23 @@
 
 #endif /* CS_V7_SRC_V7_FEATURES_H_ */
 #ifdef V7_MODULE_LINES
+#line 1 "v7/src/platform.h"
+#endif
+/*
+ * Copyright (c) 2014 Cesanta Software Limited
+ * All rights reserved
+ */
+
+#ifndef CS_V7_SRC_PLATFORM_H_
+#define CS_V7_SRC_PLATFORM_H_
+
+#ifdef __arm
+#undef V7_ENABLE__Date
+#define V7_ENABLE__Date 0
+#endif
+
+#endif /* CS_V7_SRC_PLATFORM_H_ */
+#ifdef V7_MODULE_LINES
 #line 1 "v7/src/core_public.h"
 #endif
 /*
@@ -202,6 +219,7 @@
 
 /* Amalgamated: #include "v7/src/license.h" */
 /* Amalgamated: #include "v7/src/v7_features.h" */
+/* Amalgamated: #include "v7/src/platform.h" */
 
 #include <stddef.h> /* For size_t */
 #include <stdio.h>  /* For FILE */
@@ -435,6 +453,7 @@
 
 /* Amalgamated: #include "v7/src/license.h" */
 /* Amalgamated: #include "v7/src/v7_features.h" */
+/* Amalgamated: #include "v7/src/platform.h" */
 
 #include <stddef.h> /* For size_t */
 #include <stdio.h>  /* For FILE */