diff --git a/src/libs/thorvg/tvgTaskScheduler.h b/src/libs/thorvg/tvgTaskScheduler.h index f4caa1c329..5fc2c06296 100644 --- a/src/libs/thorvg/tvgTaskScheduler.h +++ b/src/libs/thorvg/tvgTaskScheduler.h @@ -26,19 +26,23 @@ #ifndef _TVG_TASK_SCHEDULER_H_ #define _TVG_TASK_SCHEDULER_H_ +#ifdef THORVG_THREAD_SUPPORT #include #include #include +#endif #include "tvgCommon.h" #include "tvgInlist.h" +#ifdef THORVG_THREAD_SUPPORT using std::mutex; using std::condition_variable; using std::unique_lock; using std::thread; using std::atomic; using std::try_to_lock; +#endif namespace tvg {