Skip to content

Commit

Permalink
Fix includes of "avs/posix.h"
Browse files Browse the repository at this point in the history
  • Loading branch information
qyot27 committed Sep 2, 2023
1 parent ed2f58a commit d4680ec
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/avisynth_c/avisynth.c
Expand Up @@ -22,6 +22,10 @@
#include "avs_common.h"
#include "ff_filters.h"

#ifndef _WIN32
#include "avs/posix.h"
#endif

#ifdef MSVC
#include <assert.h>
#define _Static_assert static_assert // for clang-cl at least 12.0
Expand Down
1 change: 0 additions & 1 deletion src/avisynth_c/avs_common.h
Expand Up @@ -27,7 +27,6 @@
#undef EXTERN_C
#define AVSC_NO_DECLSPEC
#include "avisynth_c.h"
#include "avs/posix.h"
#include "avs_lib.h"
#include "avs_utils.h"
#include "avs_convert.h"
Expand Down
1 change: 1 addition & 0 deletions src/avisynth_c/avs_lib.c
Expand Up @@ -35,6 +35,7 @@ static volatile long ref = 0;
#define avs_close FreeLibrary
#define avs_address GetProcAddress
#else
#include "avs/posix.h"
#include <dlfcn.h>
static volatile int ref = 0;
#if __APPLE__
Expand Down
4 changes: 4 additions & 0 deletions src/avisynth_c/avs_utils.c
Expand Up @@ -26,6 +26,10 @@
#include <ffms.h>
#include <ffmscompat.h>

#ifndef _WIN32
#include "avs/posix.h"
#endif

enum AVPixelFormat csp_name_to_pix_fmt( const char *csp_name, enum AVPixelFormat def )
{
if( !csp_name || !strcmp( csp_name, "" ) )
Expand Down

0 comments on commit d4680ec

Please sign in to comment.