nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f73401
)
lib: adds missing import of math.h in standard library
author
Alexis Laferrière
<alexis.laf@xymus.net>
Thu, 28 Nov 2013 19:36:34 +0000
(14:36 -0500)
committer
Alexis Laferrière
<alexis.laf@xymus.net>
Wed, 29 Jan 2014 14:30:30 +0000
(09:30 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib/standard/math.nit
patch
|
blob
|
history
diff --git
a/lib/standard/math.nit
b/lib/standard/math.nit
index
eaaf2e6
..
04816e9
100644
(file)
--- a/
lib/standard/math.nit
+++ b/
lib/standard/math.nit
@@
-16,6
+16,10
@@
module math
import kernel
import collection
+in "C header" `{
+#include <math.h>
+`}
+
redef class Int
fun rand: Int is extern "kernel_Int_Int_rand_0"
fun bin_and(i: Int): Int is extern "kernel_Int_Int_binand_0"