From f01d3a342f23b53a0b39165ca635978fd2942d07 Mon Sep 17 00:00:00 2001 From: Alex Voinea Date: Tue, 21 Sep 2021 14:55:52 +0200 Subject: [PATCH] Fix unit test compatibility with mingw change __mingw32__ to __win32__ --- tests/unit/modules/motion/rampgen.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/unit/modules/motion/rampgen.cpp b/tests/unit/modules/motion/rampgen.cpp index f917167..940fe0f 100644 --- a/tests/unit/modules/motion/rampgen.cpp +++ b/tests/unit/modules/motion/rampgen.cpp @@ -1,5 +1,11 @@ #include +#ifndef __WIN32__ #include +#else +#define EX_OK 0 +#define EX_USAGE 64 +#define EX_OSERR 71 +#endif #include "motion.h" using namespace modules::motion;