Fix compile error on Linux platform and use c++ style header file(<cstddef> instead of <stddef.h>)

This commit is contained in:
dijunkun
2024-05-23 14:41:51 +08:00
parent 5decc4b007
commit 3fc8f9f616
21 changed files with 40 additions and 37 deletions

View File

@@ -1,8 +1,7 @@
#include "audio_frame.h"
#include <string.h>
#include <string>
#include <cstring>
#include <utility>
AudioFrame::AudioFrame() {}

View File

@@ -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:

View File

@@ -1,8 +1,7 @@
#include "video_frame.h"
#include <string.h>
#include <string>
#include <cstring>
#include <utility>
VideoFrame::VideoFrame() {}

View File

@@ -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: