Add missing headers for srand() to jerry-minimal and riot-stm32f4

A buildoption test is also added to test jerry-cmdline-minimal.

JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély zsborbely.u-szeged@partner.samsung.com
This commit is contained in:
Zsolt Borbély 2017-11-04 00:58:37 +01:00 committed by yichoi
parent 4690d128b3
commit ee24965bcf
3 changed files with 5 additions and 0 deletions

View File

@ -13,6 +13,7 @@
* limitations under the License.
*/
#include <stdlib.h>
#include <string.h>
#include "jerryscript.h"

View File

@ -14,10 +14,12 @@
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "shell.h"
#include "jerryscript.h"
#include "jerryscript-ext/handler.h"
#include "jerryscript-port.h"
/**
* Standalone Jerry exit codes

View File

@ -128,6 +128,8 @@ JERRY_BUILDOPTIONS = [
['--jerry-libc=off', '--compile-flag=-m32', '--cpointer-32bit=on', '--system-allocator=on']),
Options('buildoption_test-external_context',
['--jerry-libc=off', '--external-context=on']),
Options('buildoption_test-cmdline_minimal',
['--jerry-cmdline-minimal=on']),
Options('buildoption_test-snapshot_tool',
['--jerry-cmdline-snapshot=on']),
]