Include declaration of fsincos.

Fix compilation warning about fsincos undeclared on Linux by defining
_GNU_SOURCE before including <math.h>
This commit is contained in:
Christian Häggström 2017-05-28 21:47:25 +02:00
parent 1655c11f04
commit fb8d9adf4f
1 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,8 @@
* Author: benjamin * Author: benjamin
*/ */
#define _GNU_SOURCE /* for sincosf */
#include "mcpwm_foc.h" #include "mcpwm_foc.h"
#include "mc_interface.h" #include "mc_interface.h"
#include "ch.h" #include "ch.h"