Skip to content

Commit

Permalink
修复rt-thread下的编译错误
Browse files Browse the repository at this point in the history
  • Loading branch information
HEYAHONG committed Dec 14, 2024
1 parent 204f0c1 commit b933268
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hbox/gui/hgui_gui_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
#include "string.h"
#include "stdlib.h"
#include "wchar.h"
#ifdef __RTTHREAD__
#include "rtthread.h"
#endif
#ifdef __cplusplus
extern "C"
{
Expand All @@ -27,9 +30,11 @@ typedef SSIZE_T ssize_t;

#else

#ifndef __RTTHREAD__
#ifndef ssize_t
typedef intptr_t ssize_t;
#endif // ssize_t
#endif // __RTTHREAD__

#endif

Expand Down

0 comments on commit b933268

Please sign in to comment.