mirror of
https://github.com/Proxmark/proxmark3.git
synced 2024-11-23 14:00:18 -08:00
c44c2f04d9
- Use -D_ISOC99_SOURCE instead of -D__USE_MINGW_ANSI_STDIO=1 - WIN32 is deprecated. Use _WIN32 instead
25 lines
717 B
C
25 lines
717 B
C
//-----------------------------------------------------------------------------
|
|
// Copyright (C) 2010 iZsh <izsh at fail0verflow.com>
|
|
//
|
|
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
|
|
// at your option, any later version. See the LICENSE.txt file for the text of
|
|
// the license.
|
|
//-----------------------------------------------------------------------------
|
|
// platform-independant sleep macros
|
|
//-----------------------------------------------------------------------------
|
|
|
|
#ifndef SLEEP_H__
|
|
#define SLEEP_H__
|
|
|
|
#ifdef _WIN32
|
|
#include <windows.h>
|
|
#define sleep(n) Sleep(1000 * n)
|
|
#define msleep(n) Sleep(n)
|
|
#else
|
|
#include <unistd.h>
|
|
#define msleep(n) usleep(1000 * n)
|
|
#endif
|
|
|
|
#endif
|
|
|