From fb8d9adf4f00fda87b607384a728993caa6d1aaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20H=C3=A4ggstr=C3=B6m?= Date: Sun, 28 May 2017 21:47:25 +0200 Subject: [PATCH] Include declaration of fsincos. Fix compilation warning about fsincos undeclared on Linux by defining _GNU_SOURCE before including --- mcpwm_foc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mcpwm_foc.c b/mcpwm_foc.c index 00dfc4bb..6814da3e 100644 --- a/mcpwm_foc.c +++ b/mcpwm_foc.c @@ -22,6 +22,8 @@ * Author: benjamin */ +#define _GNU_SOURCE /* for sincosf */ + #include "mcpwm_foc.h" #include "mc_interface.h" #include "ch.h"