Skip to content

Commit

Permalink
fix build iOS platform
Browse files Browse the repository at this point in the history
  • Loading branch information
shuai132 committed Jul 1, 2022
1 parent b09d66c commit 71d6d8a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/co/hook.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#pragma once

#ifdef __APPLE__
#include "TargetConditionals.h"
#endif

namespace co {
void disable_hook_sleep();
void enable_hook_sleep();
Expand Down
4 changes: 4 additions & 0 deletions src/log/stack_trace.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#ifndef _WIN32
#include "stack_trace.h"

#ifdef __APPLE__
#include "TargetConditionals.h"
#endif

// We do not support stack trace on IOS, ANDROID
#if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR || defined(__ANDROID__) || !defined(HAS_BACKTRACE_H)
namespace ___ {
Expand Down

0 comments on commit 71d6d8a

Please sign in to comment.