compiling on windows again

This commit is contained in:
roel@libnfc.org 2013-02-28 21:36:09 +00:00
parent 54a942b05d
commit cb64309e4b
3 changed files with 3 additions and 3 deletions

View file

@ -70,7 +70,7 @@ static inline int parity(uint32_t x)
x ^= x >> 4;
return BIT(0x6996, x & 0xf);
#else
asm( "movl %1, %%eax\n"
__asm( "movl %1, %%eax\n"
"mov %%ax, %%cx\n"
"shrl $0x10, %%eax\n"
"xor %%ax, %%cx\n"

View file

@ -11,7 +11,7 @@
#ifndef SLEEP_H__
#define SLEEP_H__
#ifdef WIN32
#ifdef _WIN32
#include <windows.h>
#define sleep(n) Sleep(1000 * n)
#define msleep(n) Sleep(n)

View file

@ -10,7 +10,7 @@
#include "util.h"
#ifndef WIN32
#ifndef _WIN32
#include <termios.h>
#include <sys/ioctl.h>
int ukbhit(void)