Remove includes of <stdint.h>

Instead of including the deprecated header <stdint.h>, zm_define.h should be used.
This commit is contained in:
Peter Keresztes Schmidt 2021-02-02 20:04:06 +01:00
parent e09fa1bebf
commit 0c5c720e4b
5 changed files with 9 additions and 10 deletions

View File

@ -19,8 +19,9 @@
#ifndef ZM_FFMPEG_H #ifndef ZM_FFMPEG_H
#define ZM_FFMPEG_H #define ZM_FFMPEG_H
#include <stdint.h>
#include "zm.h" #include "zm_config.h"
#include "zm_define.h"
extern "C" { extern "C" {

View File

@ -21,7 +21,9 @@
#define ZM_LOGGER_H #define ZM_LOGGER_H
#include "zm_config.h" #include "zm_config.h"
#include <stdint.h> #include "zm_define.h"
#include "zm_thread.h"
#include <unistd.h> #include <unistd.h>
#include <string> #include <string>
#include <map> #include <map>
@ -30,8 +32,6 @@
#endif // HAVE_SYS_SYSCALL_H #endif // HAVE_SYS_SYSCALL_H
#include <mysql/mysql.h> #include <mysql/mysql.h>
#include "zm_thread.h"
class Logger { class Logger {
public: public:
enum { enum {

View File

@ -44,7 +44,6 @@ class Monitor;
#include "zm_image_analyser.h" #include "zm_image_analyser.h"
#include <sys/time.h> #include <sys/time.h>
#include <stdint.h>
#define SIGNAL_CAUSE "Signal" #define SIGNAL_CAUSE "Signal"
#define MOTION_CAUSE "Motion" #define MOTION_CAUSE "Motion"

View File

@ -20,10 +20,9 @@
#ifndef ZM_RTP_DATA_H #ifndef ZM_RTP_DATA_H
#define ZM_RTP_DATA_H #define ZM_RTP_DATA_H
#include "zm_thread.h"
#include "zm_buffer.h" #include "zm_buffer.h"
#include "zm_define.h"
#include <stdint.h> #include "zm_thread.h"
class RtspThread; class RtspThread;
class RtpSource; class RtpSource;

View File

@ -21,11 +21,11 @@
#define ZM_RTP_SOURCE_H #define ZM_RTP_SOURCE_H
#include "zm_buffer.h" #include "zm_buffer.h"
#include "zm_define.h"
#include "zm_ffmpeg.h" #include "zm_ffmpeg.h"
#include "zm_thread.h" #include "zm_thread.h"
#include <sys/time.h> #include <sys/time.h>
#include <stdint.h>
#include <string> #include <string>
#if HAVE_LIBAVCODEC #if HAVE_LIBAVCODEC