Fix requirement to use prefix when using $defined

This commit is contained in:
Christoffer Lerno
2025-12-13 00:38:19 +01:00
parent a0ab10c23e
commit 0c0d0ace4d
3 changed files with 33 additions and 11 deletions

View File

@@ -78,7 +78,7 @@ enum Month : char (String name, String abbrev, int days, bool leap)
fn Time now()
{
$if $defined(native_timestamp):
$if $defined(os::native_timestamp):
return os::native_timestamp();
$else
return (Time)0;