commit
bba5c8a39a
109 files changed
+14085
No files matched your search
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
// Per-OS symbol → import library table.
|
||||
// Source of truth: data/symlib_{linux,windows,macos}.txt
|
||||
|
||||
#include "format/vlc_format.hpp"
|
||||
|
||||
#include <string_view>
|
||||
|
||||
namespace voidlibc::voidlink {
|
||||
|
||||
// Returns the import library for `name` on the given OS.
|
||||
// Checks the builtin table; returns "" if not found (caller should use the
|
||||
// per-OS default: libc.so.6 / ucrtbase.dll / /usr/lib/libSystem.B.dylib).
|
||||
std::string_view library_for(voidlibc::format::TargetOS os, std::string_view name);
|
||||
|
||||
// Returns the per-OS default import library used as a fallback when no
|
||||
// table entry is found.
|
||||
std::string_view default_library(voidlibc::format::TargetOS os);
|
||||
|
||||
} // namespace voidlibc::voidlink
|
||||
Reference in new issue
Block a user