// SPDX-License-Identifier: ISC // SPDX-FileCopyrightText: 2024 Matthew Wozniak #ifndef OS_H #define OS_H #include #include "intdef.h" #define os_dlopen LoadLibraryA #define os_dlsym GetProcAddress inline bool os_mprot(void *mem, int len, int mode) { ulong old; return !!VirtualProtect(mem, len, mode, &old); } #endif // vi: sw=4 ts=4 noet tw=80 cc=80