-
Notifications
You must be signed in to change notification settings - Fork 35
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
Another attempt at Windows support (less ifdefs) #66
base: master
Are you sure you want to change the base?
Conversation
I tried compiling under msys/ucrt64, but got a compiler error. Click here to see error message
|
Thanks for your quick response! It does compile now, but I don't have an example to test it against, because I just stumbled accross this library and want to check it out :D |
I'm not sure if I did something wrong, but I believe
#define TB_IMPL
#include <termbox2.h>
int main()
{
tb_init();
struct tb_event event = {};
int err = TB_OK;
while(event.key != TB_KEY_CTRL_C) {
err = tb_peek_event(&event, 100);
if(err != TB_OK && err != TB_ERR_NO_EVENT && !(err == TB_ERR_POLL && tb_last_errno() == EINTR))
break;
}
tb_shutdown();
if (err != TB_OK)
printf("%s\n", tb_strerror(err));
} |
@sewbacca Hm, that's strange. |
See #58 for the first attempt.