Moves Windows conditional code to dedicated files
This commit is contained in:
parent
87182b5a65
commit
3fff5985fc
2 changed files with 7 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
|||
/*-
|
||||
* Public platform independent Near Field Communication (NFC) library
|
||||
*
|
||||
* Copyright (C) 2011, 2012 Romuald Conty
|
||||
* Copyright (C) 2011, 2012, 2013 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
|
||||
|
@ -31,5 +31,11 @@
|
|||
# include <winbase.h>
|
||||
# define sleep(X) Sleep( X * 1000)
|
||||
|
||||
// With MinGW, getopt(3) is provided as separate header
|
||||
#if defined(WIN32) && defined(__GNUC__) /* mingw compiler */
|
||||
#include <getopt.h>
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* _UNISTD_H_ */
|
||||
|
||||
|
|
|
@ -55,10 +55,6 @@
|
|||
|
||||
#include "nfc-utils.h"
|
||||
|
||||
#if defined(WIN32) && defined(__GNUC__) /* mingw compiler */
|
||||
#include <getopt.h>
|
||||
#endif
|
||||
|
||||
static nfc_device *pnd;
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue