commit 967bad43a053bf7d9d54dd352fcd8416c767785e (tree)
parent 4a3d689550286fbf7859321991c8f7b7e6d87207
Author: Andrew Kelley <superjoe30@gmail.com>
Date: Wed, 16 May 2018 20:18:38 -0400
OpenBSD has the same C integer sizes as Linux
Thanks Jan S <jan.schreib@gmail.com> for this information
closes #1016
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/target.cpp b/src/target.cpp
@@ -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: