libwave icon indicating copy to clipboard operation
libwave copied to clipboard

Improved endianess check, fixed compiler warnings

Open eleccoder opened this issue 4 years ago • 0 comments

  • __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

eleccoder avatar Jul 30 '21 09:07 eleccoder