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:
Brian Paul
2010-07-19 10:50:08 -06:00
parent d1671ceb71
commit 369e9272de
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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 {
+1 -1
View File
@@ -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 {