Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Improved endianess check, fixed compiler warnings #8

Closed
wants to merge 10 commits into from

Conversation

eleccoder
Copy link

  • __BYTE_ORDER__ evaluated to also work with gcc ARM (cross) compiler, for example
  • Usage of preprocessor macros improved; could now be compiled w/o warnings with '-Wundef'
  • Fixed compiler warnings seen on Windows/MinGW by using stdint types:
    wav.c:434:108: warning: cast from pointer to integer of different size
    [-Wpointer-to-int-cast]
    self->format_chunk.header.size =
    (WavU32)((WavUIntPtr)&self->format_chunk.body.ext_size -
    (WavUIntPtr)&self->format_chunk.body);
    ^
  • Obsolete comment removed

brglng added a commit that referenced this pull request Sep 18, 2023
@brg1ng
Copy link
Collaborator

brg1ng commented Sep 18, 2023

Merged with modification.

@brg1ng brg1ng closed this Sep 18, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants