Skip to content

Undefined platform #1329

Answered by GabrielRavier
Tampa asked this question in Q&A
Nov 28, 2024 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

Those are checks you need to make at runtime with functions like IsWindows/IsLinux/IsXnu/IsBsd/IsAarch64/IsFreebsd/IsOpenbsd/IsNetBsd/IsMetal/etc.

(making such checks at compile time would not be possible by definition since the platform Cosmopolitan runs on is determined at runtime)

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Tampa
Comment options

@jart
Comment options

jart Nov 29, 2024
Maintainer

@Tampa
Comment options

@Tampa
Comment options

@Tampa
Comment options

Answer selected by GabrielRavier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants