mirror of https://github.com/rusefi/bldc.git
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:
parent
1655c11f04
commit
fb8d9adf4f
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue