/* 
 * Copyright (C) 2000-2001 Computer & Communications Research Laboratories,
 *			   Industrial Technology Research Institute
 */
/*
 * osdep.h
 *
 * $Id: osdep.h,v 1.9 2001/06/12 00:39:13 hcc Exp $
 */

#ifndef OSDEP_H
#define OSDEP_H

#ifdef  __cplusplus
extern "C" {
#endif

#include "common.h"

#if defined(UNIX)
#define closesocket(s)		close(s)
#define getError()		errno
void sleeping(unsigned int msec);
#elif defined(WIN32)
#define getError()		WSAGetLastError()
#define sleeping(msec)		Sleep(msec)
#endif

#ifdef  __cplusplus
}
#endif

#endif  /* OSDEP_H */
