OpenBSD has the same C integer sizes as Linux

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

closes #1016
This commit is contained in:
Andrew Kelley 2018-05-16 20:18:38 -04:00
parent 4a3d689550
commit 967bad43a0

View File

@ -702,6 +702,7 @@ uint32_t target_c_type_size_in_bits(const ZigTarget *target, CIntType id) {
case OsLinux:
case OsMacOSX:
case OsZen:
case OsOpenBSD:
switch (id) {
case CIntTypeShort:
case CIntTypeUShort:
@ -742,7 +743,6 @@ uint32_t target_c_type_size_in_bits(const ZigTarget *target, CIntType id) {
case OsKFreeBSD:
case OsLv2:
case OsNetBSD:
case OsOpenBSD:
case OsSolaris:
case OsHaiku:
case OsMinix: