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:
Romuald Conty
2009-05-27 14:05:07 +00:00
parent f34857487d
commit 1dcb53dc4d
8 changed files with 41 additions and 29 deletions

View File

@@ -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,