diff --git a/src/hxp/HostPlatform.hx b/src/hxp/HostPlatform.hx index 923260d..41ca00f 100644 --- a/src/hxp/HostPlatform.hx +++ b/src/hxp/HostPlatform.hx @@ -1,6 +1,6 @@ package hxp; -@:enum abstract HostPlatform(String) from String to String +#if (haxe_ver < "4.0") @:enum #else enum #end abstract HostPlatform(String) from String to String { public var WINDOWS = "windows"; public var MAC = "mac";