compiler: fix glsl_types.h compile failures when including as C++ in drivers
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7807>
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
#include "util/macros.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
#include "main/config.h"
|
||||
#include "mesa/main/config.h"
|
||||
#endif
|
||||
|
||||
struct glsl_type;
|
||||
@@ -288,7 +288,7 @@ enum {
|
||||
|
||||
#include "GL/gl.h"
|
||||
#include "util/ralloc.h"
|
||||
#include "main/menums.h" /* for gl_texture_index, C++'s enum rules are broken */
|
||||
#include "mesa/main/menums.h" /* for gl_texture_index, C++'s enum rules are broken */
|
||||
|
||||
struct glsl_type {
|
||||
GLenum gl_type;
|
||||
|
||||
Reference in New Issue
Block a user