Skip to content
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

Fix compilation for tools/armips.cpp by removing #undef __STRICT_ANSI__ #96

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bradleycha
Copy link

At the time the single file for armips was created, there was a reliance on non-standard function strcasecmp() in armips. According to armips/79bf12b02ffe1feb39e4e529fb13ccedf3102339, this was required to fix the build with Cygwin at the time. However, this breaks headers which are configured based on STRICT_ANSI. For me, this resulted in compilation failing with GCC 14.2.1 on Arch Linux.

Commit armips/946338745955fef3a5528eefeb947751aae9363c replaces the one use of strcasecmp with its own implementation, and commit armips/2205628e245e9f4ca5fc90cb7c39fe8457729077 removes the #undef __STRICT_ANSI.

I simply applied the fix from armips/946338745955fef3a5528eefeb947751aae9363c and removed the #undef STRICT_ANSI, which fixes the build.

…function strcasecmp from armips/946338745955fef3a5528eefeb947751aae9363c
@cursedUs64-git
Copy link

Tested with latest Cygwin, works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants