mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 02:00:12 +01:00
g3dvl/xlib: fix build by changing include order
fixes the following build error since
c83fb4d45f:
/usr/include/strings.h:46:13: error: expected declaration specifiers or
‘...’ before numeric constant
/usr/include/strings.h:46:13: error: conflicting types for ‘memset’
In file included from
../../../../src/gallium/winsys/g3dvl/xlib/xsp_winsys.c:34:0:
../../../../src/gallium/auxiliary/util/u_inlines.h: In function
‘pipe_buffer_create’:
../../../../src/gallium/auxiliary/util/u_inlines.h:189:4: error: too
many arguments to function ‘memset’
/usr/include/strings.h:46:13: note: declared here
bzero is defined in X11 as: #define bzero(b,len) memset(b,0,len)
including strings.h after the X11 header results in preprocessor
replacing 'bzero' in strings.h and generating unbuildable code.
Signed-off-by: Tobias Droste <tdroste@gmx.de>
This commit is contained in:
parent
72cb103cf5
commit
e809f4e54c
1 changed files with 2 additions and 2 deletions
|
|
@ -25,14 +25,14 @@
|
|||
*
|
||||
**************************************************************************/
|
||||
|
||||
#include <X11/Xlibint.h>
|
||||
|
||||
#include "pipe/p_state.h"
|
||||
|
||||
#include "util/u_memory.h"
|
||||
#include "util/u_format.h"
|
||||
#include "util/u_inlines.h"
|
||||
|
||||
#include <X11/Xlibint.h>
|
||||
|
||||
#include "state_tracker/xlib_sw_winsys.h"
|
||||
#include "softpipe/sp_public.h"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue