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
Allow compilation with both MinGW and mingw-64 #82
Conversation
Allow compilation with self-defined INFOEX, needed with old MINGW (and maybe old Watcom, too), by specifying `-DHAVE_NO_INFOEX`.
allow the C DEFINE added with ea517ce to be specified during Make
For a discussion about a possibly more "clean" solution see https://sourceforge.net/p/open-cobol/discussion/help/thread/cae471ca |
@Bill-Gray: With the renaming of the variant and the Makefile this PR has too much conflicts. Do you want me to redo it on current master, do it your own or aim for the "possibly more 'clean' solution"? Note: PDCurses 3.4 worked on MinGW and likely on mingw-64, too; PDCurses 4.0.2 cannot be built with MinGW any more. The fastest version to get it working was the hack given above and manually specifying |
"With the renaming of the variant and the Makefile this PR has too much conflicts." Though fortunately, not enough conflict to ruin your basic reasoning, i.e.: add an I may have been thinking about the desirability of maintaining some level of compatibility with William McBrine's branch. He has, of course, now removed this capability. I'm not ready to do that yet (nor are you or others). But that does mean we no longer have to try to make our logic resemble that of "official" PDCurses; we can do it however we wish, and your method seems straightforward enough. The one minor change I'd suggest is that instead of making a new We do have the issue that William has incorporated quite a few nice improvements, particularly to the Windows console platform, and not all of them have percolated down to this fork. At some point, I'll have to go through the various commits to PDCurses/wmcbrine and add them to PDCurses/Bill-Gray (I've already done this with a few). (Alternatively, the improvements in this fork would get pulled up into PDCurses/wmcbrine, and some already have been. But I don't expect most of them ever will; incorporating the wmcbrine improvements here seems more likely to occur.) |
That could be done but there is no reason to set this (or possible other) PDCurses library only flags when generating the demos (and you also see those flags as the Makefile is not "silent"). |
@Bill-Gray I currently don't have any old Watcom environment to test if the INFOEX=N changes should be integrated in its makefile, too - Do you? |
Oldest (and only) OpenWATCOM I've got is 1.9, the last officially supported one. Since it's free, I'm hard pressed to think of an instance where we couldn't just say, "Go update your OpenWATCOM compiler". I do have a machine with MSVC 5.0, which needs INFOEX=N (just tried it by adding |
Concerning OpenWatcom: Yes, let's stay with the Makefile as-is. |
Allow compilation with self-defined INFOEX, needed with old MINGW (and maybe old Watcom, too), by specifying
-DHAVE_NO_INFOEX
.MinGW actually doesn't define this since years (see wmcbrine/PDCurses#28), which likely changes in some point of time (see https://osdn.net/projects/mingw/ticket/38187).
I'd say it is best to assume it is available on MinGW and WATCOM if not explicit requested otherwise.
I'm not sure about the used names, though...
@Bill-Gray Opinions?