Skip to content

Commit

Permalink
增加兼容性
Browse files Browse the repository at this point in the history
  • Loading branch information
HEYAHONG committed Feb 4, 2024
1 parent 27d640c commit c689257
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
8 changes: 8 additions & 0 deletions hbox/cpp/hcpprt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@
#include "hcompiler.h"
#include "hdefaults.h"

//CYGWIN当作Windows
#ifdef __CYGWIN__
#undef __unix__
#ifndef WIN32
#define WIN32 1
#endif // WIN32
#endif // __CYGWIN__

/*
通过此类判断构造函数是否被执行。
*/
Expand Down
10 changes: 10 additions & 0 deletions hbox/hdefaults.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@

#include "hcompiler.h"
#include "hdefaults.h"


//CYGWIN当作Windows
#ifdef __CYGWIN__
#undef __unix__
#ifndef WIN32
#define WIN32 1
#endif // WIN32
#endif // __CYGWIN__

#ifdef __RTTHREAD__
#include "rtthread.h"
#endif // __RTTHREAD__
Expand Down
2 changes: 1 addition & 1 deletion test/building.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#模拟环境
#模拟(RT-Thread)环境
Env = None

from SCons.Script import *
Expand Down

0 comments on commit c689257

Please sign in to comment.