util: add dummy field to empty structure types
Empty structure types aren't allowed with MSVC. I haven't tested this change. Hope I haven't broken it...
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
|
||||
#define UTIL_MEMPOOL_MAGIC 0xcafe4321
|
||||
|
||||
struct util_mempool_block_body {};
|
||||
struct util_mempool_block_body { char dummy; };
|
||||
|
||||
/* The block is either allocated memory or free space. */
|
||||
struct util_mempool_block {
|
||||
|
||||
@@ -43,7 +43,7 @@ enum util_mempool_threading {
|
||||
UTIL_MEMPOOL_MULTITHREADED = TRUE
|
||||
};
|
||||
|
||||
struct util_mempool_page_body {};
|
||||
struct util_mempool_page_body { char dummy; };
|
||||
|
||||
/* The page is an array of blocks (allocations). */
|
||||
struct util_mempool_page {
|
||||
|
||||
Reference in New Issue
Block a user