Skip to content

Commit

Permalink
fix(macos/linux): import boost headers normally (#3096)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hazer authored Aug 26, 2024
1 parent 88ce507 commit 45265fb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/platform/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
#include <string>

#include <boost/core/noncopyable.hpp>
#ifndef _WIN32
#include <boost/asio.hpp>
#include <boost/process.hpp>
#endif

#include "src/config.h"
#include "src/logging.h"
Expand All @@ -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 {
Expand All @@ -50,6 +55,7 @@ namespace boost {
typedef basic_environment<char> environment;
} // namespace process
} // namespace boost
#endif
namespace video {
struct config_t;
} // namespace video
Expand Down

0 comments on commit 45265fb

Please sign in to comment.