--- linuxsampler/trunk/src/common/global.h 2007/11/27 17:48:04 1530 +++ linuxsampler/trunk/src/common/global.h 2007/11/27 18:03:13 1531 @@ -35,4 +35,18 @@ typedef std::string String; +#if defined(WIN32) +#include +#define usleep(a) Sleep(a/1000) +#define sleep(a) Sleep(a*1000) +typedef unsigned int uint; +// FIXME: define proper functions which do proper alignement under Win32 +#define alignedMalloc(a,b) malloc(b) +#define alignedFree(a) free(a) +#else +// needed for usleep under POSIX +#include +#endif + + #endif // __LS_GLOBAL_H__