diff options
author | Matthew Wozniak <me@woz.blue> | 2024-11-03 00:20:45 -0400 |
---|---|---|
committer | Matthew Wozniak <me@woz.blue> | 2024-11-03 00:22:05 -0400 |
commit | 492aac484b5c65e5df21a7d1b1cf781063efef50 (patch) | |
tree | 01055654432f784c6d709690f0d6b7e175c3262d /os.h | |
parent | d00096fe2ea3dd64cff9878879c077f23a783e4a (diff) | |
download | rt-492aac484b5c65e5df21a7d1b1cf781063efef50.tar.gz rt-492aac484b5c65e5df21a7d1b1cf781063efef50.zip |
purge CR from this project
Diffstat (limited to 'os.h')
-rw-r--r-- | os.h | 50 |
1 files changed, 25 insertions, 25 deletions
@@ -1,25 +1,25 @@ -// SPDX-License-Identifier: ISC
-// SPDX-FileCopyrightText: 2024 Matthew Wozniak <me@woz.blue>
-
-#ifndef OS_H
-#define OS_H
-
-#include <Windows.h>
-#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 <me@woz.blue> + +#ifndef OS_H +#define OS_H + +#include <Windows.h> +#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 |