Rename variable to avoid conflict with Winsock type#534
Rename variable to avoid conflict with Winsock type#534rms47 merged 1 commit intoopen-simh:masterfrom
Conversation
|
The change you propose would seemingly only be relevant for Windows builds since you mention "Winsock". The legacy windows builds currently build cleanly without any change to any source modules. Maybe the real problem is in the build toolchain and build instructions that you're using. |
|
No, you're wrong. C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\um\WinSock2.h line 907 of WinSock2.h |
|
I never said that under some combination of tool chain build activities you might not encounter the problem you are reporting. However, like I said, if you (or I) build with the legacy build facilities (using Visual Studio 2022 or Visual Studio 2008), absolutely no build complaints arise. If it is failing for you, then you are showing a proof of a problem with the tool chain build process. |
|
The build error is manifest on the windows CI builds as you can see from my fork: https://github.com/LegalizeAdulthood/simh/actions/runs/24319064062/job/71001783892
I don't know how many times I have to say it. You're wrong. |
|
Oops. I wasn't trying to build the linc simulator which had the conflicting definition. The simh/simh repo doesn't have this problem (and thus need any change to the linc source code) since other SCP changes implicitly removed that potential conflict some 3 years ago. The best solution for the open-simh/simh repo is the proposed PR. |
|
Please just go back to playing in your own self-imposed licensed sandbox and stop replying to my bug reports and PRs and wasting my time on the fork that was created explicitly to get away from you and your decisions. |
c0b38e0 to
b726c6f
Compare
|
This looks like more of a Winsock bug. This file probably shouldn't be included where it is to define this variable. GROUP is a name they should not have used. |
|
You can argue that it's poor naming on the part of the winsock header and I might agree with you, but it is what it is. We can't change winsock headers. You might as well just argue that it's bad form for POSIX to declare a function called open, preventing us from having a function called open. |
|
This is a real problem, as I established in the course of fixing the ZIMH build for Windows. My fix for this is here: pmetzger/zimh@6224745f |
|
As the original author of this file, I'm happy for this fix to be merged. |
No description provided.