aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseyko <seyko2@gmail.com>2015-01-05 18:23:32 +0300
committerseyko <seyko2@gmail.com>2015-01-05 18:23:32 +0300
commit524abd46b4f48304f123869958bedecda1d891e9 (patch)
tree7fd1af9406ca5338179c5847604117114ba1f068
parent77ef3b2929094da36817ce15ac4445d736e5b7da (diff)
downloadtinycc-524abd46b4f48304f123869958bedecda1d891e9.tar.gz
tinycc-524abd46b4f48304f123869958bedecda1d891e9.tar.bz2
round() in test (24_math_library) fail because there are no defs included.
gcc complain but work right and tcc simply fail to compile right.
-rw-r--r--tests/tests2/24_math_library.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/tests2/24_math_library.c b/tests/tests2/24_math_library.c
index 4cc3d9e..514a25f 100644
--- a/tests/tests2/24_math_library.c
+++ b/tests/tests2/24_math_library.c
@@ -1,3 +1,5 @@
+#define _ISOC99_SOURCE 1
+
#include <stdio.h>
#include <math.h>