Fix for gcc2 flexible array declaration

This commit is contained in:
François Revol 2013-12-07 01:10:57 +01:00
parent 850432f990
commit d6561e51e0
2 changed files with 3 additions and 2 deletions

View File

@ -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 {

View File

@ -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)