From 45265fb10387d329dc813a0dd7778c5998b787cd Mon Sep 17 00:00:00 2001 From: Vithorio Polten Date: Mon, 26 Aug 2024 10:27:23 -0300 Subject: [PATCH] fix(macos/linux): import boost headers normally (#3096) --- src/platform/common.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/platform/common.h b/src/platform/common.h index bd594ba1..4104d4ea 100644 --- a/src/platform/common.h +++ b/src/platform/common.h @@ -11,6 +11,10 @@ #include #include +#ifndef _WIN32 + #include + #include +#endif #include "src/config.h" #include "src/logging.h" @@ -31,6 +35,7 @@ struct AVHWFramesContext; struct AVCodecContext; struct AVDictionary; +#ifdef _WIN32 // Forward declarations of boost classes to avoid having to include boost headers // here, which results in issues with Windows.h and WinSock2.h include order. namespace boost { @@ -50,6 +55,7 @@ namespace boost { typedef basic_environment environment; } // namespace process } // namespace boost +#endif namespace video { struct config_t; } // namespace video