From a56f07b74d655df46084bdbd5762d3127fde0fed Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 7 Nov 2020 09:30:01 +1100 Subject: [PATCH] AP_Math: allow build without other headers for vector2.h --- libraries/AP_Math/vector2.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/AP_Math/vector2.h b/libraries/AP_Math/vector2.h index 00fda1aaeb..afd824a042 100644 --- a/libraries/AP_Math/vector2.h +++ b/libraries/AP_Math/vector2.h @@ -29,6 +29,10 @@ ****************************************/ #pragma once +#ifndef MATH_CHECK_INDEXES +#define MATH_CHECK_INDEXES 0 +#endif + #include #include