-
Notifications
You must be signed in to change notification settings - Fork 222
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
Compilation error on macosx [curses.h] #39
Comments
What happens if you add -D_XOPEN_SOURCE=500 to your CFLAGS/CXXFLAGS? |
With |
That it weird, from man feature_test_macros:
So something fishy is going on there. Also, because of the above, defining _XOPEN_SOURCE_EXTENDED explicitly is definitely not a good general way to solve it. ncmpcpp should depend on ICU only if boost was compiled with ICU. Does configure fail if ICU is not installed? |
/*
* With XPG4, you must define _XOPEN_SOURCE_EXTENDED, it is redundant (or
* conflicting) when _XOPEN_SOURCE is 500 or greater.
*/
#undef NCURSES_WIDECHAR
#if defined(_XOPEN_SOURCE_EXTENDED) || defined(_XPG5)
#define NCURSES_WIDECHAR
#endif It is from my |
and after the comma it says exactly what I pasted above. |
Yes.
So what is the good way? I'm not familiar with this feature_test_macros_magic. |
I have no idea. I'm also not familiar with it, what I wrote is just what I found after checking out yesterday the fragment of curses.h you pasted. You can locally define XOPEN_SOURCE_EXTENDED if for some reason it's not defined by XOPEN_SOURCE. |
I managed that it happens because there is no features.h on macosx. This feature_test_macros_magic is in the header. So I'll pass XOPEN_SOURCE_EXTENDED to homebrew formula (macosx package manager). You can close the issue. Thanks. |
I still need to add |
I'm compiling latest master (0dc3752) with flag --enable-unicode
And I have errors like this.
In curses.h i see next lines related to waddwstr, but they should be disabled by some defines and I don't know how to manage it.
The text was updated successfully, but these errors were encountered: