aboutsummaryrefslogtreecommitdiff
path: root/graphics/mesa-demos/files/patch-src_tests_texdown.c
blob: 01f325a66ceac5ba4d9860b37f955ca95d077ee9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# aligned_alloc() is in <stdlib.h>, so only _aligned_malloc() needs <malloc.h>
#
--- src/tests/texdown.c.orig	2018-02-23 08:50:21 UTC
+++ src/tests/texdown.c
@@ -34,7 +34,9 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#ifdef _WIN32
 #include <malloc.h>
+#endif
 #include <math.h>
 #include <GL/glew.h>
 #include "glut_wrap.h"