mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-04-28 09:26:18 +00:00
Make libnfc compile under Windows
Apply adapted patch from Glenn (Thanks!)
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
* Public platform independent Near Field Communication (NFC) library
|
||||
*
|
||||
* Copyright (C) 2010, Romuald Conty
|
||||
* Copyright (C) 2011, Glenn Ergeerts
|
||||
*
|
||||
* 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
|
||||
@@ -30,6 +31,7 @@
|
||||
# define snprintf(S, n, F, ...) sprintf(S, F, __VA_ARGS__)
|
||||
# define MAX(a,b) max(a,b)
|
||||
# define MIN(a,b) min(a,b)
|
||||
# define pipe(fds) _pipe(fds, 5000, _O_BINARY)
|
||||
# else
|
||||
# define snprintf sprintf_s
|
||||
# define strdup _strdup
|
||||
|
||||
Reference in New Issue
Block a user