]> cvs.zerfleddert.de Git - proxmark3-svn/blame - client/hid-flasher/sleep.h
small fix in auth (#693)
[proxmark3-svn] / client / hid-flasher / sleep.h
CommitLineData
e9281ae8
JH
1//-----------------------------------------------------------------------------
2// Copyright (C) 2010 iZsh <izsh at fail0verflow.com>
3//
4// This code is licensed to you under the terms of the GNU GPL, version 2 or,
5// at your option, any later version. See the LICENSE.txt file for the text of
6// the license.
7//-----------------------------------------------------------------------------
8// platform-independant sleep macros
9//-----------------------------------------------------------------------------
10
11#ifndef SLEEP_H__
12#define SLEEP_H__
13
c44c2f04 14#ifdef _WIN32
e9281ae8
JH
15#include <windows.h>
16#define sleep(n) Sleep(1000 * n)
17#define msleep(n) Sleep(n)
18#else
19#include <unistd.h>
20#define msleep(n) usleep(1000 * n)
21#endif
22
23#endif
24
Impressum, Datenschutz