path: root/dir-iterator.h
diff options
authorElijah Newren <>2018-08-15 17:54:10 (GMT)
committerJunio C Hamano <>2018-08-15 18:52:09 (GMT)
commit1076f1e454dae338cee8e48f3e69b58181e5e10a (patch)
tree0b52cb2a3051019850000e0474055ec2360e1cf0 /dir-iterator.h
parentf790d8125279e44d7611f17466b0248fbdea8ed1 (diff)
Remove forward declaration of an enum
According to, sizeof(char*) != sizeof(int*) on some platforms. Since an enum could be a char or int (or long or...), knowing the size of the enum thus is important to knowing the size of a pointer to an enum, so we cannot just forward declare an enum the way we can a struct. (Also, modern C++ compilers apparently define forward declarations of an enum to either be useless because the enum was defined, or require an explicit size specifier, or be a compilation error.) Helped-by: Jonathan Nieder <> Signed-off-by: Elijah Newren <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'dir-iterator.h')
0 files changed, 0 insertions, 0 deletions