From 2b895475f600b142e9ccbfb3b33009fe68b21162 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Fri, 9 Jun 2017 14:57:20 +0100 Subject: [PATCH] util: Remove u_math from u_vector u_vector.h doesn't actually use anything from u_math, but it does mean everyone has to pull in src/gallium/auxiliary/util includes. Just remove it, adding a include to u_vector.c to cover memcpy. Reviewed-by: Eric Engestrom Reviewed-by: Emil Velikov --- src/util/u_vector.c | 3 +++ src/util/u_vector.h | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/util/u_vector.c b/src/util/u_vector.c index 37c4245..4dc7bc2 100644 --- a/src/util/u_vector.c +++ b/src/util/u_vector.c @@ -20,6 +20,9 @@ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. */ + +#include +#include "util/u_math.h" #include "util/u_vector.h" int diff --git a/src/util/u_vector.h b/src/util/u_vector.h index c0e199c..cd8a95d 100644 --- a/src/util/u_vector.h +++ b/src/util/u_vector.h @@ -31,7 +31,6 @@ #include #include -#include "util/u_math.h" #include "util/macros.h" /* TODO - move to u_math.h - name it better etc */ -- 2.7.4