From fd245bb5dfae76cb958e38f3dc06d57211ec55c5 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 19 Aug 2019 15:09:47 +0200 Subject: [PATCH] Fix includes for gettid() on android. --- common/TracySystem.hpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/common/TracySystem.hpp b/common/TracySystem.hpp index b06ab79b..ae4f835e 100644 --- a/common/TracySystem.hpp +++ b/common/TracySystem.hpp @@ -9,11 +9,13 @@ extern "C" __declspec(dllimport) unsigned long __stdcall GetCurrentThreadId(void # include #endif -#ifdef __ANDROID__ -# include -#elif defined __linux__ +#ifdef __linux__ # include -# include +# ifdef __ANDROID__ +# include +# else +# include +# endif #endif #include