Browse Source

lavu/tests: move timer.h include earlier

In the next commit, timer.h will require a _GNU_SOURCE to be set before
including system headers. This commit prevents compilation failures.
tags/n3.4
Clément Bœsch Clément Bœsch 7 years ago
parent
commit
e0b9b3e60e
6 changed files with 15 additions and 3 deletions
  1. +3
    -1
      libavutil/tests/adler32.c
  2. +3
    -0
      libavutil/tests/aes.c
  3. +3
    -1
      libavutil/tests/base64.c
  4. +2
    -0
      libavutil/tests/des.c
  5. +2
    -1
      libavutil/tests/eval.c
  6. +2
    -0
      libavutil/tests/softfloat.c

+ 3
- 1
libavutil/tests/adler32.c View File

@@ -17,10 +17,12 @@
*/

// LCOV_EXCL_START

#include "libavutil/timer.h"

#include <string.h>

#include "libavutil/log.h"
#include "libavutil/timer.h"
#include "libavutil/adler32.h"

#define LEN 7001


+ 3
- 0
libavutil/tests/aes.c View File

@@ -17,6 +17,9 @@
*/

// LCOV_EXCL_START

#include "libavutil/timer.h"

#include <string.h>

#include "libavutil/aes.h"


+ 3
- 1
libavutil/tests/base64.c View File

@@ -17,12 +17,14 @@
*/

// LCOV_EXCL_START

#include "libavutil/timer.h"

#include <stdint.h>
#include <stdio.h>

#include "libavutil/common.h"
#include "libavutil/base64.h"
#include "libavutil/timer.h"

#define MAX_DATA_SIZE 1024
#define MAX_ENCODED_SIZE 2048


+ 2
- 0
libavutil/tests/des.c View File

@@ -16,6 +16,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#include "libavutil/timer.h"

#include "libavutil/des.c"

#include <stdint.h>


+ 2
- 1
libavutil/tests/eval.c View File

@@ -16,12 +16,13 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#include "libavutil/timer.h"

#include <math.h>
#include <stdio.h>
#include <string.h>

#include "libavutil/libm.h"
#include "libavutil/timer.h"
#include "libavutil/eval.h"

static const double const_values[] = {


+ 2
- 0
libavutil/tests/softfloat.c View File

@@ -18,6 +18,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#include "libavutil/timer.h"

#include <inttypes.h>

#include "libavutil/softfloat.h"


Loading…
Cancel
Save