To be used to retrieve errno upon receiving -XMP_ERROR_SYSTEM from
a libxmp function call. Useful when either libxmp or its client is
statically linked to libc.
Closes: https://github.com/libxmp/libxmp/issues/335
I made this fix at 27'th September 2019 while experimenting
with the Emscripten thing. Unfortunately, external variables don't like
the given export flag. Also, the build fails when emscripten.h wasn't included.
This call is intended to modify the replay tempo of a module without
changing the tempo value directly (which could be overriden by a tempo
setting command in the module itself).
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This patch adds code, documentation, and unit testing for a new function, xmp_set_row, as discussed in issue #100. I must confess, however, that I do not fully understand the purpose of the final if block in set_position, which is the reason I had to make a special case for a negative pos member of player_data.
Please review and share your thoughts. Thank you for maintaining libxmp.
moving them to LDFLAGS in commit 518f688 should be unintended. if the
flags are supported, define XMP_SYM_VISIBILITY or XMP_LDSCOPE_GLOBAL
to signal xmp.h for it. define USE_VERSIONED_SYMBOLS in common.h only
if XMP_SYM_VISIBILITY is defined, otherwise building with a gcc without
visibility attributes support fails.
build tested with:
- Linux: gcc-4.3.0, 4.9.4, 3.4.6 (redhat, with visibility attributes
backport), 3.3.6, 2.95.4. clang-3.4.2
- MinGW[-w64]: gcc-4.5.4, 3.4.5
- Darwin: gcc-4.0.1 (build 5494), 4.2.1 (build 5666 dot 3)
- DJGPP: gcc-3.4.6