-
Notifications
You must be signed in to change notification settings - Fork 314
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
uchar.h is missing on macOS #423
Comments
What header defines |
(Sorry, I don't have a mac so I cannot test that myself) |
cc @adrianwong. Maybe we should just switch to uint32_t for now? |
I think there is no header available, and it's not built-in unfortunately. Something like this should work I guess: #ifdef __APPLE__
#include <stdint.h>
typedef uint16_t char16_t;
typedef uint32_t char32_t;
#else
#include <uchar.h>
#endif |
This issue also impacted our Darwin builds once we updated cbindgen from 0.10.0 to 0.10.1. |
This is technically a breaking change for C++, unfortunately. Fixes mozilla#423.
Ok, I put up #424 for this. I decided to use |
The tests in that PR seem unrelated to the change, I think it's a rust nightly change / regression (they're the |
This is technically a breaking change for C++, unfortunately. Fixes mozilla#423.
Ah no, I just forgot to run the tests locally as I had a stable compiler. Should be green now :) |
(But thanks a lot for the offer @adrianwong!) |
Thanks for fixing this @emilio! And apologies all for not testing the |
No worries, I can't test it on mac myself either, and the CI situation there is not amazing (though may be better now? We should investigate adding Mac to our CI if possible). Thanks for being responsive (and to the reporters for the fast issue-filing :)). |
This is technically a breaking change for C++, unfortunately. Fixes #423.
Landed that and published v0.11.0, as it is technically a breaking change for C++ bindings unfortunately. |
uchar.h is not present on mac and this header broke all builds. Ref mozilla/cbindgen#423
We're using
cbindgen
to generate both C and C++ headers in our project. However, the generated C header fails to build on macOS with the 0.10.1 release (QE-Lab/dqcsim#313) becauseuchar.h
is missing on macOS.The text was updated successfully, but these errors were encountered: