-
Notifications
You must be signed in to change notification settings - Fork 70
fix newlib #1255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: next
Are you sure you want to change the base?
fix newlib #1255
Conversation
trcrsired
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// std
#include
#include
#include
#include
#include
#include <type_traits>
chrono is NOT allowed since it is not freestanding
ask @SekaiArendelle |
|
btw, you cannot assume you can use threads in newlib. newlib simply does NOT provide threads. The compiler will make weird decisions. |
no thread, only provided this_thread::sleep_for sleep_until and yield, the newlib provide a fake function there |
what can i say |
the solution is make them protected by macro __has_include |
|
@trcrsired add contidional include |
|
为什么要在那些文件里加 #if __has_include() #include 完全就是瞎搞。而且谁规定你光has_include就能include了?禁止在全库所有的位置加include,懂? |
让 @SekaiArendelle 改了,这个他一开始就这么搞的 |
|
你让他把这坨清理了 |
你让ai搞 |
ok,等几天 |
…<chrono> inclusion
No description provided.