From c6bf9c6942a8d348aeb02e6dff843ec382c3f0b9 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 15 Feb 2016 16:26:10 -0700 Subject: [PATCH] MacOS has the same int sizes as Linux Source: https://developer.apple.com/library/mac/documentation/Darwin/Conceptual/64bitPorting/transition/transition.html --- src/target.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/target.cpp b/src/target.cpp index e8079c05e..9ecdefa4c 100644 --- a/src/target.cpp +++ b/src/target.cpp @@ -354,6 +354,7 @@ int get_c_type_size_in_bits(const ZigTarget *target, CIntType id) { case ZigLLVM_UnknownOS: zig_unreachable(); case ZigLLVM_Linux: + case ZigLLVM_Darwin: switch (id) { case CIntTypeShort: case CIntTypeUShort: @@ -387,7 +388,6 @@ int get_c_type_size_in_bits(const ZigTarget *target, CIntType id) { zig_unreachable(); } case ZigLLVM_CloudABI: - case ZigLLVM_Darwin: case ZigLLVM_DragonFly: case ZigLLVM_FreeBSD: case ZigLLVM_IOS: