mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-22 12:12:35 +03:00
Fix for gcc2 flexible array declaration
This commit is contained in:
parent
850432f990
commit
d6561e51e0
@ -96,7 +96,7 @@ struct treeview_node {
|
||||
|
||||
struct treeview_node_entry {
|
||||
treeview_node base;
|
||||
struct treeview_field fields[];
|
||||
struct treeview_field fields[FLEX_ARRAY_LEN_DECL];
|
||||
}; /**< Entry class inherits node base class */
|
||||
|
||||
struct treeview_pos {
|
||||
|
@ -21,6 +21,7 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "utils/bloom.h"
|
||||
#include "utils/utils.h"
|
||||
|
||||
/**
|
||||
* Hash a string, returning a 32bit value. The hash algorithm used is
|
||||
@ -50,7 +51,7 @@ static inline uint32_t fnv(const char *datum, size_t len)
|
||||
struct bloom_filter {
|
||||
size_t size;
|
||||
uint32_t items;
|
||||
uint8_t filter[];
|
||||
uint8_t filter[FLEX_ARRAY_LEN_DECL];
|
||||
};
|
||||
|
||||
struct bloom_filter *bloom_create(size_t size)
|
||||
|
Loading…
Reference in New Issue
Block a user