testprogs: Add missing libm.h includes

Message ID 1460358329-14007-1-git-send-email-martin@martin.st
State Committed
Headers show

Commit Message

Martin Storsjö April 11, 2016, 7:05 a.m.
This fixes building on MSVC 2010 and 2012 after d12b5b2f135.
---
 libavcodec/iirfilter-test.c | 1 +
 libavutil/eval-test.c       | 1 +
 2 files changed, 2 insertions(+)

Comments

Luca Barbato April 11, 2016, 8:40 a.m. | #1
On 11/04/16 09:05, Martin Storsjö wrote:
> This fixes building on MSVC 2010 and 2012 after d12b5b2f135.
> ---
>  libavcodec/iirfilter-test.c | 1 +
>  libavutil/eval-test.c       | 1 +
>  2 files changed, 2 insertions(+)
> 
> diff --git a/libavcodec/iirfilter-test.c b/libavcodec/iirfilter-test.c
> index 139a35d..afd555e 100644
> --- a/libavcodec/iirfilter-test.c
> +++ b/libavcodec/iirfilter-test.c
> @@ -20,6 +20,7 @@
>  #include <stdint.h>
>  #include <stdio.h>
>  
> +#include "libavutil/libm.h"
>  #include "iirfilter.h"
>  
>  #define FILT_ORDER 4
> diff --git a/libavutil/eval-test.c b/libavutil/eval-test.c
> index da8721d..3551f17 100644
> --- a/libavutil/eval-test.c
> +++ b/libavutil/eval-test.c
> @@ -20,6 +20,7 @@
>  #include <stdio.h>
>  #include <string.h>
>  
> +#include "libm.h"
>  #include "timer.h"
>  #include "eval.h"
>  

Sure
Diego Biurrun April 11, 2016, 10:41 a.m. | #2
On Mon, Apr 11, 2016 at 10:05:29AM +0300, Martin Storsjö wrote:
> This fixes building on MSVC 2010 and 2012 after d12b5b2f135.
> ---
>  libavcodec/iirfilter-test.c | 1 +
>  libavutil/eval-test.c       | 1 +
>  2 files changed, 2 insertions(+)
> 
> --- a/libavcodec/iirfilter-test.c
> +++ b/libavcodec/iirfilter-test.c
> @@ -20,6 +20,7 @@
>  #include <stdint.h>
>  #include <stdio.h>
>  
> +#include "libavutil/libm.h"
>  #include "iirfilter.h"

Please add an empty line between libavutil and local headers.

OK

Diego

Patch

diff --git a/libavcodec/iirfilter-test.c b/libavcodec/iirfilter-test.c
index 139a35d..afd555e 100644
--- a/libavcodec/iirfilter-test.c
+++ b/libavcodec/iirfilter-test.c
@@ -20,6 +20,7 @@ 
 #include <stdint.h>
 #include <stdio.h>
 
+#include "libavutil/libm.h"
 #include "iirfilter.h"
 
 #define FILT_ORDER 4
diff --git a/libavutil/eval-test.c b/libavutil/eval-test.c
index da8721d..3551f17 100644
--- a/libavutil/eval-test.c
+++ b/libavutil/eval-test.c
@@ -20,6 +20,7 @@ 
 #include <stdio.h>
 #include <string.h>
 
+#include "libm.h"
 #include "timer.h"
 #include "eval.h"