aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2018-02-11 11:32:08 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2018-02-12 09:30:09 +0100
commit86a46c4b36231d7c66cf71c46a339e7b0fef9068 (patch)
tree6698a8ab3e7fa19100053ed501205bd9711f6b8f
parente2e009d7d55b75da4537b1fbecb6759c0aabb63c (diff)
downloadlibnitrokey-86a46c4b36231d7c66cf71c46a339e7b0fef9068.tar.gz
libnitrokey-86a46c4b36231d7c66cf71c46a339e7b0fef9068.tar.bz2
Include stdbool.h in NK_C_API.h
NK_C_API.h uses the type bool although it is not defined in standard C. Since C99, the header stdbool.h provides this type, so this patch includes it in NK_C_API.h to make it valid C code. (Note that the API already required C99 for the "//"-style comments.)
-rw-r--r--NK_C_API.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/NK_C_API.h b/NK_C_API.h
index 01290d8..a4fb088 100644
--- a/NK_C_API.h
+++ b/NK_C_API.h
@@ -22,6 +22,7 @@
#ifndef LIBNITROKEY_NK_C_API_H
#define LIBNITROKEY_NK_C_API_H
+#include <stdbool.h>
#include <stdint.h>
#ifdef _MSC_VER