summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-02-14 11:53:25 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2017-03-11 15:41:46 +0100
commit6ee68fa294d1d9ab8fa8e61a009845dc31a9b771 (patch)
tree2647e13c34dbffa7827d3c1dfada51a82ba398c9 /include
parentadbc664125142c434294bfa795666c90c7608429 (diff)
downloadlibnitrokey-6ee68fa294d1d9ab8fa8e61a009845dc31a9b771.tar.gz
libnitrokey-6ee68fa294d1d9ab8fa8e61a009845dc31a9b771.tar.bz2
Compiles on MXE, but not working on Windows
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'include')
-rw-r--r--include/device.h2
-rw-r--r--include/log.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/include/device.h b/include/device.h
index a23e1b3..281c4d9 100644
--- a/include/device.h
+++ b/include/device.h
@@ -1,7 +1,7 @@
#ifndef DEVICE_H
#define DEVICE_H
#include <chrono>
-#include <hidapi/hidapi.h>
+#include "hidapi/hidapi.h"
#include <cstdint>
#include <string>
diff --git a/include/log.h b/include/log.h
index 8eda4fb..0b0df8c 100644
--- a/include/log.h
+++ b/include/log.h
@@ -6,6 +6,10 @@
namespace nitrokey {
namespace log {
+#ifdef ERROR
+#undef ERROR
+#endif
+
enum class Loglevel : int { DEBUG_L2, DEBUG, INFO, WARNING, ERROR };
class LogHandler {