From 1446ae8ada8b0ef46a683d1c1c5f810d45664b0f Mon Sep 17 00:00:00 2001 From: bsongis Date: Tue, 21 Feb 2012 22:50:16 +0000 Subject: [PATCH] Make it compile on VC++ --- src/open9x.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/open9x.h b/src/open9x.h index 770ef8ef4..623036ecd 100644 --- a/src/open9x.h +++ b/src/open9x.h @@ -552,7 +552,9 @@ template FORCEINLINE t max(t a, t b) { return a>b?a:b; } template FORCEINLINE t sgn(t a) { return a>0 ? 1 : (a < 0 ? -1 : 0); } template FORCEINLINE t limit(t mi, t x, t ma) { return min(max(mi,x),ma); } +#if defined(HELI) || defined(FRSKY_HUB) uint16_t isqrt32(uint32_t n); +#endif /// Markiert einen EEPROM-Bereich als dirty. der Bereich wird dann in /// eeCheck ins EEPROM zurueckgeschrieben.