diff options
Diffstat (limited to 'src/debug.h')
-rw-r--r-- | src/debug.h | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/src/debug.h b/src/debug.h index 9a2e282f5..44fcf4b51 100644 --- a/src/debug.h +++ b/src/debug.h @@ -30,29 +30,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include <jmutexautolock.h> #include <iostream> #include "common_irrlicht.h" - -/* - Compatibility stuff -*/ - -#if (defined(WIN32) || defined(_WIN32_WCE)) -typedef DWORD threadid_t; -#define __NORETURN __declspec(noreturn) -#define __FUNCTION_NAME __FUNCTION__ -#else -typedef pthread_t threadid_t; -#define __NORETURN __attribute__ ((__noreturn__)) -#define __FUNCTION_NAME __PRETTY_FUNCTION__ -#endif - -inline threadid_t get_current_thread_id() -{ -#if (defined(WIN32) || defined(_WIN32_WCE)) - return GetCurrentThreadId(); -#else - return pthread_self(); -#endif -} +#include "threads.h" /* Debug output |