You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by je...@apache.org on 2020/06/29 04:32:18 UTC

[incubator-nuttx] branch master updated: libc: Replace nuttx/lib/math.h with math.h

This is an automated email from the ASF dual-hosted git repository.

jerpelea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 095e492  libc: Replace nuttx/lib/math.h with math.h
095e492 is described below

commit 095e492cb33ff0486da606d436802ca254d5416f
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Sun Jun 28 14:46:05 2020 +0800

    libc: Replace nuttx/lib/math.h with math.h
    
    Because user may replace math library with other implementation
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
    Change-Id: Idb5f2a8b2a70302c8561553b3bcbc40529b5257f
---
 drivers/audio/cs43l22.c | 2 +-
 drivers/audio/vs1053.c  | 2 +-
 drivers/audio/wm8904.c  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/audio/cs43l22.c b/drivers/audio/cs43l22.c
index 5df4673..dac7854 100644
--- a/drivers/audio/cs43l22.c
+++ b/drivers/audio/cs43l22.c
@@ -43,6 +43,7 @@
 #include <sys/types.h>
 #include <sys/ioctl.h>
 
+#include <math.h>
 #include <stdint.h>
 #include <stdio.h>
 #include <fcntl.h>
@@ -62,7 +63,6 @@
 #include <nuttx/audio/i2s.h>
 #include <nuttx/audio/audio.h>
 #include <nuttx/audio/cs43l22.h>
-#include <nuttx/lib/math.h>
 
 #include "cs43l22.h"
 
diff --git a/drivers/audio/vs1053.c b/drivers/audio/vs1053.c
index 2a5a7fe..296c262 100644
--- a/drivers/audio/vs1053.c
+++ b/drivers/audio/vs1053.c
@@ -44,6 +44,7 @@
 #include <sys/types.h>
 #include <sys/ioctl.h>
 
+#include <math.h>
 #include <stdint.h>
 #include <stdbool.h>
 #include <stdio.h>
@@ -60,7 +61,6 @@
 #include <nuttx/fs/ioctl.h>
 #include <nuttx/audio/audio.h>
 #include <nuttx/audio/vs1053.h>
-#include <nuttx/lib/math.h>
 
 #include "vs1053.h"
 
diff --git a/drivers/audio/wm8904.c b/drivers/audio/wm8904.c
index bd8dd83..cb10c23 100644
--- a/drivers/audio/wm8904.c
+++ b/drivers/audio/wm8904.c
@@ -50,6 +50,7 @@
 #include <sys/types.h>
 #include <sys/ioctl.h>
 
+#include <math.h>
 #include <stdint.h>
 #include <stdio.h>
 #include <fcntl.h>
@@ -71,7 +72,6 @@
 #include <nuttx/audio/i2s.h>
 #include <nuttx/audio/audio.h>
 #include <nuttx/audio/wm8904.h>
-#include <nuttx/lib/math.h>
 
 #include "wm8904.h"