mirror of
https://github.com/openharmony/graphic_utils.git
synced 2026-07-18 16:04:27 -04:00
Description: Fix compilation warning of 730release
IssueNo: https://gitee.com/openharmony/graphic_ui/issues/I5MRU3 Feature or Bugfix: Bugfix Binary Source: No Signed-off-by: suwenxiang <suwenxiang@huawei.com>
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
namespace {
|
||||
#ifdef _WIN32
|
||||
constexpr int32_t HUNDRED_NS_PER_MS = 10000;
|
||||
#elif defined(_LITEOS_M__)
|
||||
#elif defined(__LITEOS_M__)
|
||||
#else
|
||||
constexpr int16_t MS_PER_SECOND = 1000;
|
||||
constexpr int32_t NS_PER_MS = 1000000;
|
||||
@@ -134,7 +134,7 @@ void GraphicTimer::Stop()
|
||||
}
|
||||
}
|
||||
|
||||
#elif defined(_LITEOS_M__)
|
||||
#elif defined(__LITEOS_M__)
|
||||
static void TimerCallback(void* args)
|
||||
{
|
||||
GraphicTimer* timer = reinterpret_cast<GraphicTimer*>(args);
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
#include <cstdint>
|
||||
#ifdef _WIN32
|
||||
#elif defined(_LITEOS_M__)
|
||||
#elif defined(__LITEOS_M__)
|
||||
#include "cmsis_os2.h"
|
||||
#else
|
||||
#include <ctime>
|
||||
@@ -41,7 +41,7 @@ public:
|
||||
|
||||
#ifdef _WIN32
|
||||
void* GetNativeTimer()
|
||||
#elif defined(_LITEOS_M__)
|
||||
#elif defined(__LITEOS_M__)
|
||||
osTimerId_t GetNativeTimer()
|
||||
#else
|
||||
timer_t GetNativeTimer()
|
||||
@@ -73,7 +73,7 @@ private:
|
||||
|
||||
#ifdef _WIN32
|
||||
void* timer_ = nullptr;
|
||||
#elif defined(_LITEOS_M__)
|
||||
#elif defined(__LITEOS_M__)
|
||||
osTimerId_t timer_;
|
||||
#else
|
||||
timer_t timer_;
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
#include "graphic_config.h"
|
||||
#if ENABLE_GRAPHIC_LOG
|
||||
#if defined(__LITEOS__) || defined(_LITEOS_M__) || defined(__linux__)
|
||||
#if defined(__LITEOS__) || defined(__LITEOS_M__) || defined(__linux__)
|
||||
#include "log.h"
|
||||
#include <cstring>
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user