summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2015-08-09 11:55:28 +0100
committerJose Fonseca <jfonseca@vmware.com>2015-08-10 00:07:27 +0100
commit497a22a727d3606c7327eb72efbf0d2c03607f0a (patch)
tree45d8be5d4b9a8501ec0d82161b2d87b23818e3e6 /src
parent21ccdbdb5dd87b2ee66c4e78b011ec4df29efb98 (diff)
downloadexternal_mesa3d-497a22a727d3606c7327eb72efbf0d2c03607f0a.zip
external_mesa3d-497a22a727d3606c7327eb72efbf0d2c03607f0a.tar.gz
external_mesa3d-497a22a727d3606c7327eb72efbf0d2c03607f0a.tar.bz2
scons: Build roundevent_test.
Reviewed-by: Roland Scheidegger <sroland@vmware.co>
Diffstat (limited to 'src')
-rw-r--r--src/util/SConscript7
-rw-r--r--src/util/rounding.h2
2 files changed, 9 insertions, 0 deletions
diff --git a/src/util/SConscript b/src/util/SConscript
index 9e4d481..3dbe70a 100644
--- a/src/util/SConscript
+++ b/src/util/SConscript
@@ -54,3 +54,10 @@ u_atomic_test = env.Program(
)
alias = env.Alias("u_atomic_test", u_atomic_test, u_atomic_test[0].abspath)
AlwaysBuild(alias)
+
+roundeven_test = env.Program(
+ target = 'roundeven_test',
+ source = ['roundeven_test.c'],
+)
+alias = env.Alias("roundeven_test", roundeven_test, roundeven_test[0].abspath)
+AlwaysBuild(alias)
diff --git a/src/util/rounding.h b/src/util/rounding.h
index ec31b47..868e1b4 100644
--- a/src/util/rounding.h
+++ b/src/util/rounding.h
@@ -24,6 +24,8 @@
#ifndef _ROUNDING_H
#define _ROUNDING_H
+#include "c99_compat.h" // inline
+
#include <math.h>
#include <limits.h>