Skip to content
Snippets Groups Projects
Commit 510ccc4a authored by Simon McVittie's avatar Simon McVittie
Browse files

capsule-malloc: Remove duplicate typedef for mstate


I occasionally compile libcapsule with clang for better diagnostics.
Redefining typedefs is a C11 feature, which clang 8 won't allow in
C99 mode.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent fce1548e
No related branches found
No related tags found
1 merge request!311Build capsule-capture-libs from a bundled copy of libcapsule
...@@ -197,8 +197,6 @@ typedef struct _heap_info ...@@ -197,8 +197,6 @@ typedef struct _heap_info
#define chunk_at_offset(p, s) ((mchunkptr) (((char *) (p)) + (s))) #define chunk_at_offset(p, s) ((mchunkptr) (((char *) (p)) + (s)))
typedef struct malloc_state *mstate;
#define NONCONTIGUOUS_BIT (2U) #define NONCONTIGUOUS_BIT (2U)
#define contiguous(M) (((M)->flags & NONCONTIGUOUS_BIT) == 0) #define contiguous(M) (((M)->flags & NONCONTIGUOUS_BIT) == 0)
#define noncontiguous(M) (((M)->flags & NONCONTIGUOUS_BIT) != 0) #define noncontiguous(M) (((M)->flags & NONCONTIGUOUS_BIT) != 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment