diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2017-12-02 17:05:43 +0000 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2018-02-01 15:14:02 +0000 |
commit | b37b7b42dcc33d636c3db0558d032d7d95664c56 (patch) | |
tree | 792c9d5842305d1e81d5d4192f0104d2d6d40fd3 /src | |
parent | f8ed9f24d5eac1549e480dd0348d091b4299302e (diff) |
glx/apple: include util/debug.h for env_var_as_boolean prototype
mesa/src/glx/glxcmds.c:1295:21: error: implicit declaration of function 'env_var_as_boolean' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
mesa/src/glx/apple/apple_visual.c:85:28: error: implicit declaration of function 'env_var_as_boolean' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/glx/apple/apple_visual.c | 1 | ||||
-rw-r--r-- | src/glx/glxcmds.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/glx/apple/apple_visual.c b/src/glx/apple/apple_visual.c index d482bfc4e7..4a90d77c3a 100644 --- a/src/glx/apple/apple_visual.c +++ b/src/glx/apple/apple_visual.c @@ -32,6 +32,7 @@ #include <stdlib.h> #include <assert.h> #include <GL/gl.h> +#include <util/debug.h> /* <rdar://problem/6953344> */ #define glTexImage1D glTexImage1D_OSX diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c index eee45d962d..943b81754f 100644 --- a/src/glx/glxcmds.c +++ b/src/glx/glxcmds.c @@ -43,6 +43,7 @@ #ifdef GLX_USE_APPLEGL #include "apple/apple_glx_context.h" #include "apple/apple_glx.h" +#include "util/debug.h" #else #include <sys/time.h> #ifdef XF86VIDMODE |