mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 12:15:34 +08:00
Fix compile error on Linux platform and use c++ style header file(<cstddef> instead of <stddef.h>)
This commit is contained in:
@@ -7,8 +7,8 @@
|
||||
#ifndef _FEC_DECODER_H_
|
||||
#define _FEC_DECODER_H_
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
#ifndef _FEC_ENCODER_H_
|
||||
#define _FEC_ENCODER_H_
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
#include "audio_frame.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include <string>
|
||||
#include <cstring>
|
||||
#include <utility>
|
||||
|
||||
AudioFrame::AudioFrame() {}
|
||||
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
#ifndef _AUDIO_FRAME_H_
|
||||
#define _AUDIO_FRAME_H_
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
class AudioFrame {
|
||||
public:
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
#include "video_frame.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include <string>
|
||||
#include <cstring>
|
||||
#include <utility>
|
||||
|
||||
VideoFrame::VideoFrame() {}
|
||||
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
#ifndef _VIDEO_FRAME_H_
|
||||
#define _VIDEO_FRAME_H_
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
class VideoFrame {
|
||||
public:
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#include "ice_agent.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include <cstring>
|
||||
#include <iostream>
|
||||
|
||||
#include "log.h"
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
#define DLLAPI
|
||||
#endif
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
enum DATA_TYPE { VIDEO = 0, AUDIO, DATA };
|
||||
enum ConnectionStatus {
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
#include "audio_encoder.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <chrono>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
|
||||
#include "log.h"
|
||||
|
||||
@@ -7,6 +7,9 @@
|
||||
#ifndef _VIDEO_DECODER_H_
|
||||
#define _VIDEO_DECODER_H_
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <cstdio>
|
||||
#include <functional>
|
||||
|
||||
#include "video_frame.h"
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
#ifndef _VIDEO_ENCODER_H_
|
||||
#define _VIDEO_ENCODER_H_
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <cstdio>
|
||||
#include <functional>
|
||||
|
||||
class VideoEncoder {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef _RINGBUFFER_H_
|
||||
#define _RINGBUFFER_H_
|
||||
|
||||
#include <string.h>
|
||||
#include <cstring>
|
||||
|
||||
int RingBufferDummy();
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
#ifndef _RTCP_HEADER_H_
|
||||
#define _RTCP_HEADER_H_
|
||||
|
||||
#include <stdint.h>
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
#include "log.h"
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
#ifndef _RTCP_TYPEDEF_H_
|
||||
#define _RTCP_TYPEDEF_H_
|
||||
|
||||
#include <stdint.h>
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
#define DEFAULT_RTCP_VERSION 2
|
||||
#define DEFAULT_RTCP_HEADER_SIZE 4
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "byte_buffer.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <cstring>
|
||||
|
||||
ByteBufferReader::ByteBufferReader(const char* bytes, size_t len) {
|
||||
Construct(bytes, len);
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
#ifndef _BYTE_BUFFER_H_
|
||||
#define _BYTE_BUFFER_H_
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
class ByteBufferReader {
|
||||
public:
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
#ifndef _OBU_H_
|
||||
#define _OBU_H_
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
#include "aom/aom_codec.h"
|
||||
|
||||
|
||||
@@ -7,9 +7,8 @@
|
||||
#ifndef _OBU_PARSER_H_
|
||||
#define _OBU_PARSER_H_
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <vector>
|
||||
|
||||
#include "obu.h"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#ifndef _RTP_CODEC_H_
|
||||
#define _RTP_CODEC_H_
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <vector>
|
||||
|
||||
#include "fec_encoder.h"
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
#ifndef _RTP_PACKET_H_
|
||||
#define _RTP_PACKET_H_
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <cstring>
|
||||
#include <vector>
|
||||
|
||||
#include "log.h"
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#ifndef _RTP_TRANSCEIVER_H_
|
||||
#define _RTP_TRANSCEIVER_H_
|
||||
|
||||
#include <cstddef>
|
||||
#include <functional>
|
||||
|
||||
class RtpTransceiver {
|
||||
|
||||
Reference in New Issue
Block a user