8000 version: add size information · timonvo/libgit2@6330ca3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6330ca3

Browse files
committed
version: add size information
Add `sizeof-long` and `sizeof-size_t` information to `version` command.
1 parent 1509637 commit 6330ca3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/cli/cmd_version.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ int cmd_version(int argc, char **argv)
9191
printf("%s: %s\n", i->name, value);
9292
}
9393

94+
printf("sizeof-long: %" PRIuZ "\n", sizeof(long));
95+
printf("sizeof-size_t: %" PRIuZ "\n", sizeof(size_t));
96+
9497
for (i = feature_names; i->key; i++) {
9598
if (!(supported_features & i->key))
9699
continue;

0 commit comments

Comments
 (0)
0