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

Various minor header fixups #300

Merged
merged 1 commit into from
Sep 26, 2024
Merged

Conversation

skeeto
Copy link
Contributor

@skeeto skeeto commented Sep 20, 2024

  • src/files.c: stdio.h for printf
  • src/memory.c: inttypes.h for PRIu64
  • src/sdcard.c: string.h for strncpy
  • src/testbench.c: string.h for strncpy
  • src/utf8_encode.h: include guard
  • src/video_win32.c: de facto standard case for windows.h
  • src/wav_recorder.c: stdio.h for printf

I ran into all but one of the above compiling with Mingw-w64. The case for windows.h is important for cross-compilation, and on case-sensitive file systems it's always all lowercase. The missing include guard in utf8_encode.h isn't normally a problem, but it affects my custom unity build and its omission is likely an accident.

* src/files.c: stdio.h for printf
* src/memory.c: inttypes.h for PRIu64
* src/sdcard.c: string.h for strncpy
* src/testbench.c: string.h for strncpy
* src/utf8_encode.h: include guard
* src/video_win32.c: de facto standard case for windows.h
* src/wav_recorder.c: stdio.h for printf

I ran into all but one of the above compiling with Mingw-w64. The case
for windows.h is important for cross-compilation, and on case-sensitive
file systems it's always all lowercase. The missing include guard in
utf8_encode.h isn't normally a problem, but it affects my custom unity
build and its omission is likely an accident.
@mooinglemur mooinglemur merged commit 92495c6 into X16Community:master Sep 26, 2024
9 checks passed
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