Skip to content

Commit

Permalink
Haiku: fix static_assert build
Browse files Browse the repository at this point in the history
  • Loading branch information
X547 committed Jun 4, 2022
1 parent dbd857a commit b84ae8f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/amd/common/ac_sqtt.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@

#include <assert.h>
#include "ac_rgp.h"
#ifndef __cplusplus
#define static_assert _Static_assert
#endif

struct radeon_cmdbuf;
struct radeon_info;
Expand Down
3 changes: 3 additions & 0 deletions src/egl/main/egldisplay.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
*/

#include <assert.h>
#ifndef __cplusplus
#define static_assert _Static_assert
#endif
#include <stdlib.h>
#include <string.h>
#ifdef _WIN32
Expand Down
3 changes: 3 additions & 0 deletions src/util/macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
#include <stdio.h>
#include <assert.h>
#include <stdint.h>
#ifndef __cplusplus
#define static_assert _Static_assert
#endif

/* Compute the size of an array */
#ifndef ARRAY_SIZE
Expand Down

0 comments on commit b84ae8f

Please sign in to comment.