Skip to content
Snippets Groups Projects
Commit e20b46a8 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

build: add missing HAVE_CONFIG_H

Support building without config.h if the build system supports it.
Currently, some file have a config.h header guard and some files don't.

Make sure all files use the config.h header guard.

Change-Id: I461255f8d3773d47e8dc19fff9f2a12b3cab1965
parent a118ddfa
No related branches found
No related tags found
No related merge requests found
...@@ -20,8 +20,6 @@ ...@@ -20,8 +20,6 @@
#pragma once #pragma once
#include "config.h"
#include "libav_deps.h" #include "libav_deps.h"
#include "media_io_handle.h" #include "media_io_handle.h"
#include "system_codec_container.h" #include "system_codec_container.h"
......
...@@ -28,7 +28,9 @@ ...@@ -28,7 +28,9 @@
#include <list> #include <list>
#include <stdexcept> #include <stdexcept>
#ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif
extern "C" { extern "C" {
struct pjsip_inv_session; struct pjsip_inv_session;
......
#include "config.h"
#ifdef ENABLE_TRACEPOINTS #ifdef ENABLE_TRACEPOINTS
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#undef LTTNG_UST_TRACEPOINT_PROVIDER #undef LTTNG_UST_TRACEPOINT_PROVIDER
#define LTTNG_UST_TRACEPOINT_PROVIDER jami #define LTTNG_UST_TRACEPOINT_PROVIDER jami
......
...@@ -20,7 +20,10 @@ ...@@ -20,7 +20,10 @@
#pragma once #pragma once
#ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif
#include "videomanager_interface.h" #include "videomanager_interface.h"
#include "observer.h" #include "observer.h"
......
...@@ -19,7 +19,9 @@ ...@@ -19,7 +19,9 @@
*/ */
#pragma once #pragma once
#ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif
#include "rational.h" #include "rational.h"
#include "observer.h" #include "observer.h"
......
...@@ -19,10 +19,11 @@ ...@@ -19,10 +19,11 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/ */
#ifndef __MEDIA_ENCODER_H__ #pragma once
#define __MEDIA_ENCODER_H__
#ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif
#ifdef ENABLE_VIDEO #ifdef ENABLE_VIDEO
#include "video/video_base.h" #include "video/video_base.h"
...@@ -183,5 +184,3 @@ protected: ...@@ -183,5 +184,3 @@ protected:
}; };
} // namespace jami } // namespace jami
#endif // __MEDIA_ENCODER_H__
...@@ -20,7 +20,10 @@ ...@@ -20,7 +20,10 @@
#pragma once #pragma once
#ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif
#include "media_stream.h" #include "media_stream.h"
#include "noncopyable.h" #include "noncopyable.h"
......
...@@ -20,7 +20,9 @@ ...@@ -20,7 +20,9 @@
#pragma once #pragma once
#ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif
#include "media_buffer.h" #include "media_buffer.h"
#include "media_encoder.h" #include "media_encoder.h"
#include "media_filter.h" #include "media_filter.h"
......
...@@ -21,12 +21,15 @@ ...@@ -21,12 +21,15 @@
#include <algorithm> #include <algorithm>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "media_buffer.h" #include "media_buffer.h"
#include "string_utils.h" #include "string_utils.h"
#include "fileutils.h" #include "fileutils.h"
#include "logger.h" #include "logger.h"
#include "accel.h" #include "accel.h"
#include "config.h"
namespace jami { namespace jami {
namespace video { namespace video {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment