mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-02-27 12:16:34 +00:00
Use C99 standard bool type instead of locally defined one.
Check for types in configure pass. Fix a warning related to nfc_reader_select() (a length - uiInitDataLen - was set by NULL instead of 0).
This commit is contained in:
@@ -22,17 +22,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#define _LIBNFC_TYPES_H_
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "defines.h"
|
||||
|
||||
// Compiler directive, set struct alignment to 1 byte for compatibility
|
||||
#pragma pack(1)
|
||||
|
||||
typedef enum {
|
||||
false = 0x00,
|
||||
true = 0x01
|
||||
} bool;
|
||||
|
||||
typedef enum {
|
||||
CT_PN531 = 0x10,
|
||||
CT_PN532 = 0x20,
|
||||
|
||||
Reference in New Issue
Block a user