util: Remove u_math from u_vector
authorDaniel Stone <daniels@collabora.com>
Fri, 9 Jun 2017 13:57:20 +0000 (14:57 +0100)
committerDaniel Stone <daniels@collabora.com>
Fri, 14 Jul 2017 13:14:05 +0000 (14:14 +0100)
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 <string.h> include to u_vector.c to cover
memcpy.

Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/util/u_vector.c
src/util/u_vector.h

index 37c4245ebe450260c2bd5ff9fb85dd3cc88090f7..4dc7bc22b6939c76af7140d8689d59a956339857 100644 (file)
@@ -20,6 +20,9 @@
  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  * IN THE SOFTWARE.
  */
+
+#include <string.h>
+#include "util/u_math.h"
 #include "util/u_vector.h"
 
 int
index c0e199cfa5adda74bacb8bd5b738c3b26beb414a..cd8a95dcbe3d9be32a1278309956e67958e1f3f1 100644 (file)
@@ -31,7 +31,6 @@
 
 #include <stdint.h>
 #include <stdlib.h>
-#include "util/u_math.h"
 #include "util/macros.h"
 
 /* TODO - move to u_math.h - name it better etc */