mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 02:30:18 +01:00
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:
parent
3d41712193
commit
ea23ca8869
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue