-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
pdcurses: header does not match library #31674
Comments
Thanks for your issue. I will investigate this issue and fix it. |
Sorry for the late reply, I check the codes of
Its build compile the file
|
This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment. |
@LilyWangLL this issue is about placing the defines that were used to built into the distributed curses.h (likely a wrapper that includes the real header from a subdirectory). You've found the definitions to use, so do you plan to add that wrapper manually once or have it generated, too? |
This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment. |
Does the category "question" is really correct? There's an actual TODO behind this issue. |
This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment. |
This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment. |
Describe the bug
All PDCurses headers but the one from the xcurses port are "static" and not adjusted when installed.
The PDCurses header has:
but for a port that is highly bad (upstream is to blame), because all but the
PDC_NCMOUSE
must match the actual build (XCURSES is defined in the generated header for that port), and when just using the port you don't know up-front how this build was done.To Reproduce
Steps to reproduce the behavior:
#include <curses.h>
, then outputPDC_WIDE
,PDC_DLL_BUILD
,PDC_RGB
(all not set) and the flags thatPDC_get_version
returns (the build has WIDE + UTF8 + DLL flags set).Expected behavior
inclusion of the header should set the flags that are "inbuilt" and must match the built
Suggestion
Either directly patch the hard-wired three entries in curses.h, or (which would also allow to install both the ncurses and the pdcurses port together) install curses.h into a subfolder "pdcurses" and install a wrapper "pdcurses.h":
@LilyWangLL Any thoughts?
The text was updated successfully, but these errors were encountered: