Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-gnome
Path: blob/main/benchmarks/mangohud/files/patch-include_elfhacks.h
16149 views
1
--- include/elfhacks.h.orig 2020-08-16 16:54:20 UTC
2
+++ include/elfhacks.h
3
@@ -58,6 +58,16 @@ extern "C" {
4
# endif
5
#endif
6
7
+#ifndef __ELF_NATIVE_CLASS
8
+#define __ELF_NATIVE_CLASS __WORDSIZE
9
+#endif
10
+
11
+/* We use this macro to refer to ELF types independent of the native wordsize.
12
+ `ElfW(TYPE)' is used in place of `Elf32_TYPE' or `Elf64_TYPE'. */
13
+#define ElfW(type) _ElfW (Elf, __ELF_NATIVE_CLASS, type)
14
+#define _ElfW(e,w,t) _ElfW_1 (e, w, _##t)
15
+#define _ElfW_1(e,w,t) e##w##t
16
+
17
/**
18
* \defgroup elfhacks elfhacks
19
* Elfhacks is a collection of functions that aim for retvieving
20
21