authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-05-16 20:18:38-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-05-16 20:18:38-04:00
log967bad43a053bf7d9d54dd352fcd8416c767785e
tree85980f78a0c482918c1c38d0730b74d1081294e4
parent4a3d689550286fbf7859321991c8f7b7e6d87207

OpenBSD has the same C integer sizes as Linux

Thanks Jan S <jan.schreib@gmail.com> for this information closes #1016

1 files changed, 1 insertions(+), 1 deletions(-)

src/target.cpp+1-1
...@@ -702,6 +702,7 @@ uint32_t target_c_type_size_in_bits(const ZigTarget *target, CIntType id) {...@@ -702,6 +702,7 @@ uint32_t target_c_type_size_in_bits(const ZigTarget *target, CIntType id) {
702 case OsLinux:702 case OsLinux:
703 case OsMacOSX:703 case OsMacOSX:
704 case OsZen:704 case OsZen:
705 case OsOpenBSD:
705 switch (id) {706 switch (id) {
706 case CIntTypeShort:707 case CIntTypeShort:
707 case CIntTypeUShort:708 case CIntTypeUShort:
...@@ -742,7 +743,6 @@ uint32_t target_c_type_size_in_bits(const ZigTarget *target, CIntType id) {...@@ -742,7 +743,6 @@ uint32_t target_c_type_size_in_bits(const ZigTarget *target, CIntType id) {
742 case OsKFreeBSD:743 case OsKFreeBSD:
743 case OsLv2:744 case OsLv2:
744 case OsNetBSD:745 case OsNetBSD:
745 case OsOpenBSD:
746 case OsSolaris:746 case OsSolaris:
747 case OsHaiku:747 case OsHaiku:
748 case OsMinix:748 case OsMinix: