diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-10-24 22:44:07 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-10-24 22:44:07 +0200 |
commit | 07d8c66ed481cfe9e008f4855dabaa361fb50f97 (patch) | |
tree | 2d56c8739d4d0b389b1f86de1f30e712929fe277 /tools/profiler/tasktracer/GeckoTaskTracer.cpp | |
parent | 1eb8b9ced970921e0478b974292ac9e986133c83 (diff) | |
parent | 50ef259a2df60d020ccb02d76dc5aa4835ee319e (diff) | |
download | UXP-07d8c66ed481cfe9e008f4855dabaa361fb50f97.tar UXP-07d8c66ed481cfe9e008f4855dabaa361fb50f97.tar.gz UXP-07d8c66ed481cfe9e008f4855dabaa361fb50f97.tar.lz UXP-07d8c66ed481cfe9e008f4855dabaa361fb50f97.tar.xz UXP-07d8c66ed481cfe9e008f4855dabaa361fb50f97.zip |
Merge branch 'release' into Pale_Moon-release
Diffstat (limited to 'tools/profiler/tasktracer/GeckoTaskTracer.cpp')
-rw-r--r-- | tools/profiler/tasktracer/GeckoTaskTracer.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/tools/profiler/tasktracer/GeckoTaskTracer.cpp b/tools/profiler/tasktracer/GeckoTaskTracer.cpp index ada695614..36d1bffc3 100644 --- a/tools/profiler/tasktracer/GeckoTaskTracer.cpp +++ b/tools/profiler/tasktracer/GeckoTaskTracer.cpp @@ -20,22 +20,16 @@ #include <stdarg.h> -// We need a definition of gettid(), but glibc doesn't provide a +// We need a definition of gettid(), but older glibc versions don't provide a // wrapper for it. #if defined(__GLIBC__) #include <unistd.h> #include <sys/syscall.h> -static inline pid_t gettid() -{ - return (pid_t) syscall(SYS_gettid); -} +#define gettid() static_cast<pid_t>(syscall(SYS_gettid)) #elif defined(XP_MACOSX) #include <unistd.h> #include <sys/syscall.h> -static inline pid_t gettid() -{ - return (pid_t) syscall(SYS_thread_selfid); -} +#define gettid() static_cast<pid_t>(syscall(SYS_thread_selfid)) #elif defined(LINUX) #include <sys/types.h> pid_t gettid(); |