diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0b83b0a..c5f2498 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -502,7 +502,7 @@ jobs: -DKAI_ENABLE_LTO="${KAI_ENABLE_LTO}" \ -DCMAKE_TOOLCHAIN_FILE="${source_directory}/.github/workflows/cmake_toolchains/${target}.cmake" \ -DCMAKE_INSTALL_PREFIX="${install_prefix}" \ - -DCMAKE_BUILD_TYPE='MinSizeRel' + -DCMAKE_BUILD_TYPE='MinSizeRel' 1>/dev/null echo "- Building dependencies" @@ -515,11 +515,6 @@ jobs: echo "- Building main project" cmake --build "${build_directory}" -- --jobs 1>/dev/null - - if [ "${?}" != '0' ]; then - echo "- Building for ${target} failed" - fi - cmake --install "${build_directory}" --strip 1>/dev/null chmod '644' "${install_prefix}/lib/libav"* || true diff --git a/src/os.c b/src/os.c index 5ab60a5..545b6ac 100644 --- a/src/os.c +++ b/src/os.c @@ -6,14 +6,14 @@ #include #endif -#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__OpenBSD__) - #include -#endif - #if defined(__OpenBSD__) || defined(__NetBSD__) #include #endif +#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__OpenBSD__) + #include +#endif + #if defined(__HAIKU__) #include #endif diff --git a/src/os.h b/src/os.h index ced32e5..a17c7e2 100644 --- a/src/os.h +++ b/src/os.h @@ -1,6 +1,10 @@ #if !defined(OS_H) #define OS_H +#if !defined(_WIN32) + #include +#endif + #if !defined(__HAIKU__) int is_administrator(void); #endif