diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2018-07-24 14:24:39 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2018-07-26 10:16:45 +0000 |
commit | 28751d2232d6e04fdef3db72e0e7b77055bafc45 (patch) | |
tree | 4a9b9550088f207977cbd192ac2e8dd7c3b2946f | |
parent | dd8bc9e4c8024481339fb200c18a6e2e981a4bed (diff) |
On windows, use new libeu_compat.hv4.8.0-rc1v4.8.0-beta2v4.8.0-beta1v4.8.0
This way we avoid having to define the functions ourselves. We cannot use
the header on linux because we want to be compatible with mainline
elfutils there.
Change-Id: I5e5fd69a401be060b6eec07460dde9e9ad265f3f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
-rw-r--r-- | app/perfsymboltable.cpp | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/app/perfsymboltable.cpp b/app/perfsymboltable.cpp index 45cb85e..62e8a98 100644 --- a/app/perfsymboltable.cpp +++ b/app/perfsymboltable.cpp @@ -36,22 +36,7 @@ #include <fcntl.h> #ifdef Q_OS_WIN -#include <io.h> -extern "C" { - extern char *eu_compat_demangle(const char *mangled_name, char *output_buffer, - size_t *length, int *status); - extern int eu_compat_open(const char *, int); - extern int eu_compat_close(int); - extern void *eu_compat_malloc(size_t); - extern void eu_compat_free(void *); - static char* eu_compat_strdup(const char* string) - { - const size_t length = strlen(string) + 1; // include null char - char* ret = reinterpret_cast<char*>(eu_compat_malloc(length)); - std::memcpy(ret, string, length); - return ret; - } -} +#include <libeu_compat.h> #else #include <cxxabi.h> #include <unistd.h> |