Support callstack capture on BSD.

This commit is contained in:
Bartosz Taudul 2019-11-21 02:34:42 +01:00
parent 3c4a7463b8
commit bd7b0a8197

View File

@ -1,6 +1,10 @@
#ifndef __TRACYCALLSTACK_H__
#define __TRACYCALLSTACK_H__
#if !defined _WIN32 && !defined __CYGWIN__
# include <sys/param.h>
#endif
#if defined _WIN32 || defined __CYGWIN__
# define TRACY_HAS_CALLSTACK 1
#elif defined __ANDROID__
@ -15,7 +19,7 @@
# else
# define TRACY_HAS_CALLSTACK 2
# endif
#elif defined __APPLE__
#elif defined __APPLE__ || defined BSD
# define TRACY_HAS_CALLSTACK 4
#endif