mirror of
https://github.com/libgit2/libgit2.git
synced 2026-01-25 02:56:17 +00:00
version: add size information
Add `sizeof-long` and `sizeof-size_t` information to `version` command.
This commit is contained in:
@@ -91,6 +91,9 @@ int cmd_version(int argc, char **argv)
|
||||
printf("%s: %s\n", i->name, value);
|
||||
}
|
||||
|
||||
printf("sizeof-long: %" PRIuZ "\n", sizeof(long));
|
||||
printf("sizeof-size_t: %" PRIuZ "\n", sizeof(size_t));
|
||||
|
||||
for (i = feature_names; i->key; i++) {
|
||||
if (!(supported_features & i->key))
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user