From 492aac484b5c65e5df21a7d1b1cf781063efef50 Mon Sep 17 00:00:00 2001 From: Matthew Wozniak Date: Sun, 3 Nov 2024 00:20:45 -0400 Subject: purge CR from this project --- os.h | 50 +++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'os.h') diff --git a/os.h b/os.h index 594ccad..bb9aa09 100644 --- a/os.h +++ b/os.h @@ -1,25 +1,25 @@ -// SPDX-License-Identifier: ISC -// SPDX-FileCopyrightText: 2024 Matthew Wozniak - -#ifndef OS_H -#define OS_H - -#include -#include "intdef.h" - -/* This is really just here because Windows API functions are ugly. Maybe this - * will be cross platform one day... */ - -#define os_dlopen LoadLibraryA -#define os_dlsym (void *)GetProcAddress -#define os_dlhandle GetModuleHandleA -#define os_dlclose FreeLibrary - -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 +// SPDX-License-Identifier: ISC +// SPDX-FileCopyrightText: 2024 Matthew Wozniak + +#ifndef OS_H +#define OS_H + +#include +#include "intdef.h" + +/* This is really just here because Windows API functions are ugly. Maybe this + * will be cross platform one day... */ + +#define os_dlopen LoadLibraryA +#define os_dlsym (void *)GetProcAddress +#define os_dlhandle GetModuleHandleA +#define os_dlclose FreeLibrary + +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 -- cgit v1.2.3-54-g00ecf