mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-04 21:21:02 +00:00
pool: provide macro to statically initialize git_pool
This commit is contained in:
parent
73dab7692e
commit
844f5b2062
@ -35,6 +35,8 @@ typedef struct {
|
||||
uint32_t page_size; /* size of page in bytes */
|
||||
} git_pool;
|
||||
|
||||
#define GIT_POOL_INIT { NULL, 0, 0 }
|
||||
|
||||
#else
|
||||
|
||||
/**
|
||||
@ -57,6 +59,9 @@ typedef struct {
|
||||
uint32_t item_size;
|
||||
uint32_t page_size;
|
||||
} git_pool;
|
||||
|
||||
#define GIT_POOL_INIT { GIT_VECTOR_INIT, 0, 0 }
|
||||
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user