From 2bf82c1842d83b6ba0a04dda7477b2b60339a284 Mon Sep 17 00:00:00 2001 From: Mirko Bonadei Date: Thu, 1 Feb 2018 14:25:11 +0100 Subject: [PATCH] Using fully qualified #include paths in g711 code. WebRTC internal code should always use include paths that start from the root of the project and that clearly identify the header file. This allows 'gn check' to actually keep dependencies under control because 'gn check' cannot enforce anything if the include path is not fully qualified (starting from the root of the project). Bug: webrtc:8815 Change-Id: I6c345c38fd990f66bc1a8129e7f7cee7d161e926 Reviewed-on: https://webrtc-review.googlesource.com/47120 Reviewed-by: Karl Wiberg Commit-Queue: Mirko Bonadei Cr-Commit-Position: refs/heads/master@{#21848} --- modules/audio_coding/codecs/g711/g711.c | 2 +- modules/audio_coding/codecs/g711/g711_interface.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/audio_coding/codecs/g711/g711.c b/modules/audio_coding/codecs/g711/g711.c index 2b1a428a3a..0c65764be9 100644 --- a/modules/audio_coding/codecs/g711/g711.c +++ b/modules/audio_coding/codecs/g711/g711.c @@ -20,7 +20,7 @@ * -Added option to run encoder bitexact with ITU-T reference implementation */ -#include "g711.h" +#include "modules/audio_coding/codecs/g711/g711.h" #include "typedefs.h" // NOLINT(build/include) /* Copied from the CCITT G.711 specification */ diff --git a/modules/audio_coding/codecs/g711/g711_interface.c b/modules/audio_coding/codecs/g711/g711_interface.c index b5dacd6894..9c31cbc9f5 100644 --- a/modules/audio_coding/codecs/g711/g711_interface.c +++ b/modules/audio_coding/codecs/g711/g711_interface.c @@ -7,9 +7,11 @@ * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree. */ + #include -#include "g711.h" -#include "g711_interface.h" + +#include "modules/audio_coding/codecs/g711/g711.h" +#include "modules/audio_coding/codecs/g711/g711_interface.h" #include "typedefs.h" // NOLINT(build/include) size_t WebRtcG711_EncodeA(const int16_t* speechIn,