Ozkan Sezer
c2be98c23e
invent and use a XMP_AMIGA macro.
4 years ago
Ozkan Sezer
bc31a02764
fix build.
4 years ago
Ozkan Sezer
7b1283bbde
change the #ifdef order in read_key().
4 years ago
Ozkan Sezer
185b274ca6
invent and use a locale-insensitive strcasecmp() version
4 years ago
Ozkan Sezer
2a155268c2
move xmp_strdup() into a new util.c source module.
4 years ago
Ozkan Sezer
bc7fa57fcc
invent and use a private xmp_strdup()
4 years ago
Ozkan Sezer
062473c1c5
remove some redefines for _MSC_VER which are not necessary anymore
4 years ago
Ozkan Sezer
6b018d6999
check and conditionally include sys/types.h, sys/time.h, and unistd.h.
...
watcom/unistd.h and win32/unistd.h are no longer necessary, especially
after previous commit.
4 years ago
Ozkan Sezer
908977d4df
sound_wav, sound_aiff, sound_file: migrate from posix to stdio.
4 years ago
Ozkan Sezer
666bd2d3d0
sound_dart.c: remove unnecessary and pointless includes.
4 years ago
Cameron Cawley
31710da449
Minor optimization in OpenWatcom DOS builds
...
Co-authored-by: jmalak <jmalak@users.noreply.github.com>
4 years ago
Cameron Cawley
66a314674c
Improve IRQ handling in DOS builds
...
Co-authored-by: sezero <sezero@users.noreply.github.com>
4 years ago
Cameron Cawley
902a8bad43
Error out when building with DJGPP <= 2.01
...
Co-authored-by: sezero <sezero@users.noreply.github.com>
4 years ago
Cameron Cawley
d931134313
Use __attribute__((no_reorder)) for IRQ interrupts
4 years ago
Cameron Cawley
b0ea809964
Support compiling the SoundBlaster driver with OpenWatcom
4 years ago
Ozkan Sezer
ffa516a36f
add SoundBlaster output driver for DOS based on libMikMod
4 years ago
AliceLR
91970bf254
Use /dev/audio or pkgsrc DEVOSSAUDIO for OSS on NetBSD.
4 years ago
AliceLR
d9525f0161
Fix NetBSD driver compile error and OSS link error.
4 years ago
Misty De Meo
c6e4d48e53
manpage/README: remove non-existent option
4 years ago
Misty De Meo
c13461a493
manpage: correct amiga filter documentation
4 years ago
Ozkan Sezer
a02a7adf21
add new xmp_version.h which defines VERSION if not already defined.
...
is useful when working with standalone makefiles and project files.
4 years ago
Ozkan Sezer
6bbd64acbb
replace __inline__ with inline in list.h
...
common.h has fixes for it where needed.
4 years ago
Ozkan Sezer
e68fe9d983
include strings.h, if available, for strcasecmp
...
it might not be prototyped in strings.h.
4 years ago
AliceLR
ecd0820b9e
Fix out-of-bounds read of mod->xxs, constify xmp_module_info pointers.
5 years ago
Ozkan Sezer
ca64c65716
add -Wwrite-strings to CFLAGS if it's available, and fix warnings.
5 years ago
Ozkan Sezer
adadca1d93
getopt_long.c: initialize optarg and optreset to avoid symbol clashes.
...
this has been happening to me eg. with amiga clib2 like:
/opt/cross_amigaos4/ppc-amigaos/SDK/clib2/lib/libc.a(unistd_getopt.o)(.text+0x0): In function `getopt':
: multiple definition of `getopt'
getopt_long.o(.text+0xc1c):/work/xmp-cli/src/getopt_long.c:481: first defined here
/opt/cross_amigaos4/lib/gcc/ppc-amigaos/4.2.4/../../../../ppc-amigaos/bin/ld: Warning: size of symbol `getopt' changed from 16 in getopt_long.o to 672 in /opt/cross_amigaos4/ppc-amigaos/SDK/clib2/lib/libc.a(unistd_getopt.o)
/opt/cross_amigaos4/ppc-amigaos/SDK/clib2/lib/libc.a(unistd_getopt.o)(.sdata+0x4): multiple definition of `optind'
getopt_long.o(.sdata+0x4):/work/xmp-cli/src/getopt_long.c:133: first defined here
/opt/cross_amigaos4/ppc-amigaos/SDK/clib2/lib/libc.a(unistd_getopt.o)(.sbss+0x0): multiple definition of `optopt'
getopt_long.o(.sdata+0x8):/work/xmp-cli/src/getopt_long.c:126: first defined here
/opt/cross_amigaos4/ppc-amigaos/SDK/clib2/lib/libc.a(unistd_getopt.o)(.sdata+0x0): multiple definition of `opterr'
getopt_long.o(.sdata+0x0):/work/xmp-cli/src/getopt_long.c:126: first defined here
5 years ago
Ozkan Sezer
da8a4c5a56
remove extern declarations of optind and optarg, and include getopt.h.
...
also remove a non-existent HAVE_SYS_RTPRIO_H thing.
5 years ago
Ozkan Sezer
fbb32bc1b3
another minor constification.
5 years ago
Ozkan Sezer
758154f256
remove unnecessary sys/unistd.h for amiga, update amiga cpp checks.
5 years ago
Ozkan Sezer
020c75e794
removed confusing and unnecessary extra parens from an or condition
5 years ago
Ozkan Sezer
dc5a75b82f
made two callback procedures static.
5 years ago
Ozkan Sezer
1dc0824894
minor constification.
5 years ago
Ozkan Sezer
3458764046
simplify the __inline define in list.h.
5 years ago
Ozkan Sezer
06e39db305
sanitize whitespace.
5 years ago
Cameron Cawley
8752414fa8
Replace direct use of usleep()
5 years ago
Ozkan Sezer
4161197698
miscellaneous watcom build updates.
5 years ago
Ozkan Sezer
10f076e6a5
miscellaneous dos/djgpp fixes.
5 years ago
AliceLR
d741e61abd
Replace list.h undefined behavior with offsetof.
5 years ago
AliceLR
ef9e800b1e
Silence annoying GCC 11 warnings.
5 years ago
Ozkan Sezer
f4e66550d2
read_config.c: define SYSCONFDIR as ".", if not already defined.
...
Just to be safe. (and would help with cases where one might use
standalone makefiles and not autotools.)
5 years ago
Ozkan Sezer
dd42858718
fix xmp-cli not respecting system xmp.conf.
...
src/Makefile.am defined SYSCONFDIR as ${sysconfdir}, but installed
xmp.conf under ${sysconfdir}//${PACKAGE_NAME}. therefore, changing
the SYSCONFDIR define to reflect reality.
Patch from RedHat rpm repositories. Original bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=1365321
Closes: https://github.com/libxmp/xmp-cli/issues/27
5 years ago
Ozkan Sezer
7c8fa1a370
replaced 'WIN32' checks with '_WIN32'
5 years ago
Ozkan Sezer
347962bb6d
getopt update:
...
replace outdated getopt.c, getopt.h and getopt1.c with 2-clause BSD
licensed getopt source from OpenBSD, build them only if system libc
does not have getopt_long().
5 years ago
Ozkan Sezer
85df56159f
add --with-libxmp-lite to build against libxmp-lite instead of libxmp.
5 years ago
Claudio Matsuoka
88a004ef4f
Remove sequence change workaround for old libxmp
...
A workaround for sequence changes when using libxmp 4.0.4 or older
was causing memory access violations. Since we currently require
libxmp 4.4, we can safely drop this workaround.
Fixes #21
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
5 years ago
AliceLR
3bed00f3b3
Fix Windows crash-on-exit caused by freeing in-use buffers.
...
Adds a waveOutReset call before usage of waveOutUnprepareHeader.
This prevents the output buffers from being in use when they are
freed after calling waveOutUnprepareHeader.
5 years ago
Ozkan Sezer
e57c16a6eb
adjust after xmp_get_format_list() const return change in libxmp.
5 years ago
AliceLR
2c52755ce2
Add setvbuf(_IONBF) to fix terminal output for MSYS2.
5 years ago
Stephen Kitt
7ce4dd6b1e
Use apostrophes instead of acute accents
...
In groff, \' represents an acute accent, not an apostrophe. This
replaces these with straight apostrophes.
Signed-off-by: Stephen Kitt <steve@sk2.org>
5 years ago
Stephen Kitt
adaf08b0e5
Spelling fix ("ommited")
...
This was flagged by Lintian, Debian's QA tool.
Signed-off-by: Stephen Kitt <steve@sk2.org>
5 years ago