Skip to content

Fix: Windows build — strings.h and stricmp compatibility#62

Closed
dcliftreaves wants to merge 20 commits into
gopro:masterfrom
dcliftreaves:fix/windows-build
Closed

Fix: Windows build — strings.h and stricmp compatibility#62
dcliftreaves wants to merge 20 commits into
gopro:masterfrom
dcliftreaves:fix/windows-build

Conversation

@dcliftreaves

Copy link
Copy Markdown
  • Guard #include <strings.h> with #ifndef _WIN32 (not available on MSVC)
  • Add _stricmp definition for _WIN32 (MSVC equivalent of strcasecmp)

Without this fix, MSVC produces: fatal error C1083: Cannot open include file: 'strings.h'

1 file changed. Credit: approach from #51 by @keenanjohnson.

🤖 Generated with Claude Code

farhadabed and others added 20 commits June 21, 2018 16:26
fixed 3 potential memory leaks when function PrepareCodebooks
Fixed file handle leaks in read_from_file() and write_to_file()
Mac build and run instructions
Removed an incorrect cast.
Add Linux instructions ('make' vs 'make .')
…ll' after 'make' so 'gpr_tools' executable is available system-wide.
…ke install' after 'make' so 'gpr_tools' executable is available system-wide."

This reverts commit 7a3a1cb.
Add Hero5 Black GPR Sample Raw Photo
clean unused var and made for loop more readable
* make __attribute__((fallthrough)) more portable for GCC (>= 7) and CLANG (>= 10)
- Guard #include <strings.h> with #ifndef _WIN32 (not available on MSVC)
- Add _stricmp definition for _WIN32 (MSVC equivalent of strcasecmp)

Without this fix, MSVC produces:
  fatal error C1083: Cannot open include file: 'strings.h'

Credit: approach from gopro#51 by @keenanjohnson

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@dcliftreaves dcliftreaves deleted the fix/windows-build branch June 5, 2026 02:42
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.

9 participants