From 34c8055dc8c69cb719ffa30e03204fc0ed9e3ee4 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Thu, 10 Jun 2021 10:11:39 +0200 Subject: [PATCH] Small include changes To allow some files compile outside UltraGrid (without config.h) for standalone convert. --- src/compat/platform_time.c | 2 +- src/debug.cpp | 2 ++ src/video_codec.c | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/compat/platform_time.c b/src/compat/platform_time.c index 2f5a0207c..fe40ed140 100644 --- a/src/compat/platform_time.c +++ b/src/compat/platform_time.c @@ -37,9 +37,9 @@ #ifdef HAVE_CONFIG_H #include "config.h" +#endif #include "config_unix.h" #include "config_win32.h" -#endif #include "debug.h" #include diff --git a/src/debug.cpp b/src/debug.cpp index e04357686..7a77435d4 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -41,7 +41,9 @@ * SUCH DAMAGE. */ +#ifdef HAVE_CONFIG_H #include "config.h" +#endif // defined HAVE_CONFIG_H #include "config_unix.h" #include "config_win32.h" diff --git a/src/video_codec.c b/src/video_codec.c index 53f8aa830..3b8a396a3 100644 --- a/src/video_codec.c +++ b/src/video_codec.c @@ -54,10 +54,11 @@ #ifdef HAVE_CONFIG_H #include "config.h" +#endif // HAVE_CONFIG_H #include "config_unix.h" #include "config_win32.h" -#endif // HAVE_CONFIG_H +#include #include #include #include