Attempt to build libnfc under for Windows target.
This commit fixes some issues related to the new log system, but libnfc can not build on Windows in this stage since regex.h have been introduced for configuration file parsing and regex.h is not available in Windows. New issue Summary: Update Windows port Due to the recent configuration file parsing introduction, libnfc can not be built under Windows: regex.h is missing. Google says there is a port of PCRE for Windows which contains a compiliant regex.h. Contribution are welcome as nobody from currently active team use Windows as OS.
This commit is contained in:
parent
8f015c4369
commit
0af58b1cdd
2 changed files with 15 additions and 12 deletions
|
|
@ -1,7 +1,7 @@
|
|||
/*-
|
||||
* Public platform independent Near Field Communication (NFC) library
|
||||
*
|
||||
* Copyright (C) 2011 Romuald Conty
|
||||
* Copyright (C) 2011, 2012 Romuald Conty
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU Lesser General Public License as published by the
|
||||
|
|
@ -25,6 +25,8 @@
|
|||
#ifndef _UNISTD_H_
|
||||
#define _UNISTD_H_
|
||||
|
||||
#include "../windows.h"
|
||||
|
||||
// Needed by Sleep() under Windows
|
||||
# include <winbase.h>
|
||||
# define sleep(X) Sleep( X * 1000)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue