diff options
author | Michael Smith <mikesmiffy128@gmail.com> | 2021-11-20 03:10:50 +0000 |
---|---|---|
committer | Michael Smith <mikesmiffy128@gmail.com> | 2021-11-20 03:18:08 +0000 |
commit | da6f343032cb01597dc7866e66f091adf3243a62 (patch) | |
tree | 870f8cb8e82bb42202ab92bea03fc6ab35ada7ca /src/tier0stub.c |
Initial public snapshot
With code from Bill. Thanks Bill!
Diffstat (limited to 'src/tier0stub.c')
-rw-r--r-- | src/tier0stub.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/tier0stub.c b/src/tier0stub.c new file mode 100644 index 0000000..a043bea --- /dev/null +++ b/src/tier0stub.c @@ -0,0 +1,19 @@ +/* This file is dedicated to the public domain. */ + +// Produce a dummy tier0.dll/libtier0.so to allow linking without dlsym faff. +// Windows needs additional care because it's dumb. + +#ifdef _WIN32 +#define F(name) __declspec(dllexport) void name(void) {} +#define V(name) __declspec(dllexport) void *name; +#else +#define F(name) void *name; +#define V(name) void *name; +#endif + +F(Msg); +F(Warning); +// F(Error); // unused in plugin +V(g_pMemAlloc); + +// vi: sw=4 ts=4 noet tw=80 cc=80 |