From feb041170121b703ddb48cc02c2e0c9ccfd94e7c Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 13 Nov 2014 11:36:51 +0100 Subject: renamed sleep.h to port.h (for easy porting macros for Windows/Unix) --- src/port.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/port.h (limited to 'src/port.h') diff --git a/src/port.h b/src/port.h new file mode 100644 index 0000000..9585255 --- /dev/null +++ b/src/port.h @@ -0,0 +1,16 @@ +#ifndef _BIRUDA_PORT_HEADER_INCLUDED +#define _BIRUDA_PORT_HEADER_INCLUDED + +#ifndef _WIN32 +#include +#else +#define WIN32_MEAN_AND_LEAN +#include +#define sleep( SECONDS ) Sleep( SECONDS * 1000 ) +#endif + +#ifdef _WIN32 +#define snprintf _snprintf +#endif + +#endif -- cgit v1.2.3-54-g00ecf