#ifndef _DEFS_H_
#define _DEFS_H_

#ifdef __cplusplus
	extern "C" {
#else
	#define false				0
	#define true				1
#endif

#ifdef _MSC_VER
	typedef unsigned			uint32_t;
#else
	#include <inttypes.h>
#endif

typedef unsigned char uint8_t;
#if !defined(__LGI_H) && !defined(MAC)
typedef unsigned int uint16_t;
//typedef unsigned long uint32_t;
#endif

#define LN(c)				(uint8_t) ((c) & 0xf)			// Extract the low nibble
#define HN(c)				(uint8_t) (((c) >> 4) & 0xf)	// Extract the high nibble

#define MIDI_SYSEX_START	0xf0
#define MIDI_SYSEX_END		0xf7

#ifdef __cplusplus
	}
#endif


#endif