Moved ERR and SYSERR to a global place

This commit is contained in:
Abramo Bagnara 2001-01-01 15:15:41 +00:00
parent 382bba4c8f
commit 77d992bebc
6 changed files with 34 additions and 33 deletions

View file

@ -25,14 +25,7 @@
#include <limits.h>
#include <errno.h>
#include "asoundlib.h"
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
#define ERR(...) snd_lib_error(__FILE__, __LINE__, __FUNCTION__, 0, __VA_ARGS__)
#define SYSERR(...) snd_lib_error(__FILE__, __LINE__, __FUNCTION__, errno, __VA_ARGS__)
#else
#define ERR(args...) snd_lib_error(__FILE__, __LINE__, __FUNCTION__, 0, ##args)
#define SYSERR(args...) snd_lib_error(__FILE__, __LINE__, __FUNCTION__, errno, ##args)
#endif
#include "local.h"
typedef struct {
int (*close)(snd_rawmidi_t *rawmidi);