Skip to content

Fix compilation on MSVC #16

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

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

Fix compilation on MSVC #16

wants to merge 1 commit into from

Conversation

Chocobo1
Copy link
Contributor

@Chocobo1 Chocobo1 commented Nov 8, 2017

strncasecmp() does not exist in MSVC so define it as _strnicmp()

@Chocobo1
Copy link
Contributor Author

No one seems to be interested?
f423020#diff-4b139373566eea2b8713312cfdaa4be1R194
After that commit, building with MSVC is broken.

@Chocobo1 Chocobo1 mentioned this pull request Apr 15, 2023
`strncasecmp()` does not exist in MSVC so declare it is the same as
`_strnicmp()`.
@petterreinholdtsen
Copy link

This fix seem incomplete, as strncasecmp() is used in ogg123/remote.c, ogg123/vorbis_comments.c and ogg123/cfgfile_options.c too. Are you not building ogg123 on MSVC?

@petterreinholdtsen
Copy link

There is a similar define in intl/os2compat.h for OS/2. Perhaps a similar header file to work around brokenness on MSVC is a good idea?

@Chocobo1
Copy link
Contributor Author

Chocobo1 commented Apr 8, 2025

Are you not building ogg123 on MSVC?

No I am not.
IIRC there are no ogg123 build script for MSVC: https://github.com/xiph/vorbis-tools/tree/master/win32/VS2013

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