mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-25 01:40:10 -05:00
test: BSD-like fixes
- rename devname -> pcmdev, it conflicts *BSD <stdlib.h> function - replace <values.h> -> <limits.h> and fix K&R style related warning - use config.h to determine include <malloc.h> - add OpenBSD support and fix printf() warning - fix warning Fixes: https://github.com/alsa-project/alsa-lib/pull/298 Signed-off-by: SASANO Takayoshi <uaa@uaa.org.uk> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
3b4cdbdf19
commit
44705e3a20
6 changed files with 26 additions and 13 deletions
|
|
@ -71,7 +71,7 @@
|
|||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <values.h>
|
||||
#include <limits.h>
|
||||
|
||||
#include <string.h>
|
||||
/*void exit(), free();*/
|
||||
|
|
@ -148,7 +148,7 @@ static void msginit ();
|
|||
static int msgleng ();
|
||||
static void msgadd ();
|
||||
static void biggermsg ();
|
||||
static int eputc (unsigned char c);
|
||||
static int eputc ();
|
||||
|
||||
double mf_ticks2sec (unsigned long ticks, int division, unsigned long tempo);
|
||||
int mf_write_meta_event ();
|
||||
|
|
@ -328,7 +328,7 @@ readtrack () /* read a track chunk */
|
|||
|
||||
if (Mf_interactive)
|
||||
{
|
||||
Mf_toberead = MAXINT;
|
||||
Mf_toberead = INT_MAX;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue