Fix openh264 compile error on MacOS

This commit is contained in:
dijunkun
2023-11-17 16:59:27 +08:00
parent 0b90feed79
commit 2a9760c5e5
8 changed files with 26 additions and 2 deletions

View File

@@ -0,0 +1,6 @@
#include "common.h"
int CommonDummy()
{
return 0;
}

View File

@@ -3,6 +3,8 @@
#include <iostream>
int CommonDummy();
constexpr size_t HASH_STRING_PIECE(const char *string_piece) {
std::size_t result = 0;
while (*string_piece) {

View File

@@ -0,0 +1,6 @@
#include "log.h"
int LogDummy()
{
return 0;
}

View File

@@ -31,6 +31,8 @@ constexpr auto LOGGER_NAME = "siganl";
constexpr auto LOGGER_NAME = "rtc";
#endif
int LogDummy();
#define LOG_INFO(...) \
if (nullptr == spdlog::get(LOGGER_NAME)) { \
auto now = std::chrono::system_clock::now() + std::chrono::hours(8); \

View File

@@ -0,0 +1,6 @@
#include "ringbuffer.h"
int RingBufferDummy()
{
return 0;
}

View File

@@ -3,6 +3,8 @@
#include <string.h>
int RingBufferDummy();
class Data {
public:
Data() = default;