21 lines
697 B
C++
21 lines
697 B
C++
#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
|