diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-10-31 11:55:26 +0100 |
---|---|---|
committer | Simon Rozman <simon@rozman.si> | 2020-10-31 19:11:51 +0100 |
commit | 937eb447278c2bc1b30852905c7740bcdedb534d (patch) | |
tree | bec9edcff4b45ae2a076f7cb218d1f98caa36da1 /api/entry.h | |
parent | api: simplify build settings (diff) | |
download | wintun-937eb447278c2bc1b30852905c7740bcdedb534d.tar.xz wintun-937eb447278c2bc1b30852905c7740bcdedb534d.zip |
api: get rid of pch and make headers sane
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'api/entry.h')
-rw-r--r-- | api/entry.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/api/entry.h b/api/entry.h new file mode 100644 index 0000000..0e0e3a6 --- /dev/null +++ b/api/entry.h @@ -0,0 +1,26 @@ +/* SPDX-License-Identifier: GPL-2.0 + * + * Copyright (C) 2018-2020 WireGuard LLC. All Rights Reserved. + */ + +#pragma once + +#include <Windows.h> + +#ifndef __L +# define __L(x) L##x +#endif +#ifndef _L +# define _L(x) __L(x) +#endif + +#if defined(_M_IX86) || defined(_M_ARM) +#define MAYBE_WOW64 +#endif +#if defined(_M_AMD64) || defined(_M_ARM64) || defined(_DEBUG) +#define ACCEPT_WOW64 +#endif + +extern HINSTANCE ResourceModule; +extern HANDLE ModuleHeap; +extern SECURITY_ATTRIBUTES SecurityAttributes; |