Mercurial > hg > audiostuff
diff spandsp-0.0.3/spandsp-0.0.3/src/msvc/unistd.h @ 5:f762bf195c4b
import spandsp-0.0.3
author | Peter Meerwald <pmeerw@cosy.sbg.ac.at> |
---|---|
date | Fri, 25 Jun 2010 16:00:21 +0200 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/spandsp-0.0.3/spandsp-0.0.3/src/msvc/unistd.h Fri Jun 25 16:00:21 2010 +0200 @@ -0,0 +1,31 @@ +/* + * SpanDSP - a series of DSP components for telephony + * + * inttypes.h - a fudge for MSVC, which lacks this header + * + * Written by Steve Underwood <steveu@coppice.org> + * + * Copyright (C) 2006 Michael Jerris + * + * + * This file is released in the public domain. + * + */ + +#if !defined(_INTTYPES_H_) +#define _INTTYPES_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#define open _open +#define write _write + +extern int gethostname (char *name, size_t len); + +#ifdef __cplusplus +} +#endif + +#endif