From a3287d88ebdecc00c2ce38257e44f865b9222bb7 Mon Sep 17 00:00:00 2001 From: evpobr Date: Fri, 14 Apr 2017 16:47:13 +0500 Subject: [PATCH] tests: Fix typos in fixes for MSVC * src/test_main.c: Fix typo in HAVE_SYS_TYPES_H definition * tests/win32_ordinal_test.c: Use correct "direct.h" header instead of "dirent.h" Related: https://github.com/erikd/libsndfile/issues/154, https://github.com/erikd/libsndfile/pull/234 --- src/test_main.c | 2 +- tests/win32_ordinal_test.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/test_main.c b/src/test_main.c index fc8206a2..d3931931 100644 --- a/src/test_main.c +++ b/src/test_main.c @@ -20,7 +20,7 @@ #include #include -#if defined (HAVE_SYS_TYPES) && (HAVE_SYS_TYPES == 1) +#if defined (HAVE_SYS_TYPES_H) && (HAVE_SYS_TYPES_H == 1) #include #endif #include diff --git a/tests/win32_ordinal_test.c b/tests/win32_ordinal_test.c index 46f4d8af..f75dfe2f 100644 --- a/tests/win32_ordinal_test.c +++ b/tests/win32_ordinal_test.c @@ -31,7 +31,9 @@ #include #include -#include +#ifdef HAVE_DIRECT_H +#include +#endif #include #include "utils.h"