shithub: ft2play

ref: 7bc888ae5c8b31f7ccf657a7184b7b3957d48fba
dir: /common.h/

View raw version
#ifdef __plan9__
#include <u.h>
#include <libc.h>
#include <stdio.h>
typedef s64int int64_t;
typedef u32int uint32_t;
typedef s32int int32_t;
typedef u16int uint16_t;
typedef s16int int16_t;
typedef u8int uint8_t;
typedef s8int int8_t;
typedef ulong size_t;
typedef enum { false, true } bool;
#define lockMixer()
#define unlockMixer()
#define openMixer(f,s) true
#define closeMixer()
static double
round(double d)
{
	modf(d > 0 ? d+1.0 : d-1.0, &d);
	return d;
}
#else
#include <assert.h>
#include <math.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#define USED(x) (void)x
#endif