diff --git a/benchmark/bench_actor.cpp b/benchmark/bench_actor.cpp index e5d1c90e..41a1e524 100644 --- a/benchmark/bench_actor.cpp +++ b/benchmark/bench_actor.cpp @@ -9,6 +9,7 @@ #include "td/actor/actor.h" #include "td/actor/PromiseFuture.h" +#include "td/utils/common.h" #include "td/utils/logging.h" #include diff --git a/benchmark/bench_db.cpp b/benchmark/bench_db.cpp index 51264883..e713adcd 100644 --- a/benchmark/bench_db.cpp +++ b/benchmark/bench_db.cpp @@ -15,6 +15,7 @@ #include "td/db/SqliteKeyValueAsync.h" #include "td/utils/benchmark.h" +#include "td/utils/common.h" #include "td/utils/format.h" #include "td/utils/logging.h" #include "td/utils/Status.h" diff --git a/benchmark/bench_handshake.cpp b/benchmark/bench_handshake.cpp index 05f3185f..8d6e5b3b 100644 --- a/benchmark/bench_handshake.cpp +++ b/benchmark/bench_handshake.cpp @@ -9,6 +9,7 @@ #include "td/mtproto/DhHandshake.h" #include "td/utils/base64.h" +#include "td/utils/common.h" #include "td/utils/logging.h" #include "td/utils/Slice.h" diff --git a/benchmark/bench_http_reader.cpp b/benchmark/bench_http_reader.cpp index 4c73597f..d02e76a7 100644 --- a/benchmark/bench_http_reader.cpp +++ b/benchmark/bench_http_reader.cpp @@ -9,6 +9,7 @@ #include "td/utils/benchmark.h" #include "td/utils/buffer.h" +#include "td/utils/common.h" #include "td/utils/find_boundary.h" #include "td/utils/logging.h" diff --git a/benchmark/bench_log.cpp b/benchmark/bench_log.cpp index 90819de8..c0687acd 100644 --- a/benchmark/bench_log.cpp +++ b/benchmark/bench_log.cpp @@ -5,6 +5,7 @@ // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #include "td/utils/benchmark.h" +#include "td/utils/common.h" #include "td/utils/logging.h" #include diff --git a/td/generate/tl_json_converter.cpp b/td/generate/tl_json_converter.cpp index 85e605c3..42cd6877 100644 --- a/td/generate/tl_json_converter.cpp +++ b/td/generate/tl_json_converter.cpp @@ -9,6 +9,7 @@ #include "td/tl/tl_simple.h" #include "td/utils/buffer.h" +#include "td/utils/common.h" #include "td/utils/filesystem.h" #include "td/utils/logging.h" #include "td/utils/Slice.h" diff --git a/td/mtproto/Handshake.cpp b/td/mtproto/Handshake.cpp index 377f63eb..94ea5126 100644 --- a/td/mtproto/Handshake.cpp +++ b/td/mtproto/Handshake.cpp @@ -13,6 +13,7 @@ #include "td/utils/as.h" #include "td/utils/buffer.h" +#include "td/utils/common.h" #include "td/utils/crypto.h" #include "td/utils/format.h" #include "td/utils/logging.h" diff --git a/td/mtproto/HttpTransport.cpp b/td/mtproto/HttpTransport.cpp index 832c88d7..7bbdc3f6 100644 --- a/td/mtproto/HttpTransport.cpp +++ b/td/mtproto/HttpTransport.cpp @@ -9,6 +9,7 @@ #include "td/net/HttpHeaderCreator.h" #include "td/utils/buffer.h" +#include "td/utils/common.h" #include "td/utils/logging.h" #include "td/utils/misc.h" #include "td/utils/Slice.h" diff --git a/td/mtproto/SessionConnection.cpp b/td/mtproto/SessionConnection.cpp index b8ef01ca..7fb7ed29 100644 --- a/td/mtproto/SessionConnection.cpp +++ b/td/mtproto/SessionConnection.cpp @@ -13,6 +13,7 @@ #include "td/mtproto/utils.h" #include "td/utils/as.h" +#include "td/utils/common.h" #include "td/utils/format.h" #include "td/utils/Gzip.h" #include "td/utils/logging.h" diff --git a/td/telegram/CallActor.cpp b/td/telegram/CallActor.cpp index 703fabdc..adfd078e 100644 --- a/td/telegram/CallActor.cpp +++ b/td/telegram/CallActor.cpp @@ -23,6 +23,7 @@ #include "td/telegram/UpdatesManager.h" #include "td/utils/buffer.h" +#include "td/utils/common.h" #include "td/utils/crypto.h" #include "td/utils/logging.h" #include "td/utils/Random.h" diff --git a/td/telegram/CallManager.cpp b/td/telegram/CallManager.cpp index 4eee4a03..4801a9c4 100644 --- a/td/telegram/CallManager.cpp +++ b/td/telegram/CallManager.cpp @@ -6,6 +6,7 @@ // #include "td/telegram/CallManager.h" +#include "td/utils/common.h" #include "td/utils/format.h" #include "td/utils/logging.h" #include "td/utils/misc.h" diff --git a/td/telegram/Client.cpp b/td/telegram/Client.cpp index 2b07780c..6f4793d7 100644 --- a/td/telegram/Client.cpp +++ b/td/telegram/Client.cpp @@ -10,6 +10,7 @@ #include "td/actor/actor.h" +#include "td/utils/common.h" #include "td/utils/crypto.h" #include "td/utils/logging.h" #include "td/utils/MpscPollableQueue.h" diff --git a/td/telegram/ClientJson.cpp b/td/telegram/ClientJson.cpp index 721b273b..c3f0be60 100644 --- a/td/telegram/ClientJson.cpp +++ b/td/telegram/ClientJson.cpp @@ -11,6 +11,7 @@ #include "td/tl/tl_json.h" +#include "td/utils/common.h" #include "td/utils/format.h" #include "td/utils/JsonBuilder.h" #include "td/utils/logging.h" diff --git a/td/telegram/FileReferenceManager.cpp b/td/telegram/FileReferenceManager.cpp index e74ac765..7462f1bf 100644 --- a/td/telegram/FileReferenceManager.cpp +++ b/td/telegram/FileReferenceManager.cpp @@ -15,6 +15,7 @@ #include "td/telegram/WallpaperManager.h" #include "td/telegram/WebPagesManager.h" +#include "td/utils/common.h" #include "td/utils/logging.h" #include "td/utils/misc.h" #include "td/utils/overloaded.h" diff --git a/td/telegram/FileReferenceManager.hpp b/td/telegram/FileReferenceManager.hpp index b0705485..97a07c96 100644 --- a/td/telegram/FileReferenceManager.hpp +++ b/td/telegram/FileReferenceManager.hpp @@ -20,6 +20,7 @@ #include "td/telegram/WallpaperManager.h" #include "td/telegram/WebPagesManager.h" +#include "td/utils/common.h" #include "td/utils/overloaded.h" #include "td/utils/tl_helpers.h" diff --git a/td/telegram/LanguagePackManager.h b/td/telegram/LanguagePackManager.h index 57bf1789..9beee6d2 100644 --- a/td/telegram/LanguagePackManager.h +++ b/td/telegram/LanguagePackManager.h @@ -14,6 +14,7 @@ #include "td/actor/actor.h" #include "td/actor/PromiseFuture.h" +#include "td/utils/common.h" #include "td/utils/Container.h" #include "td/utils/Slice.h" #include "td/utils/Status.h" diff --git a/td/telegram/SecretChatActor.h b/td/telegram/SecretChatActor.h index 682902c3..dddeaae7 100644 --- a/td/telegram/SecretChatActor.h +++ b/td/telegram/SecretChatActor.h @@ -24,6 +24,7 @@ #include "td/utils/buffer.h" #include "td/utils/ChangesProcessor.h" +#include "td/utils/common.h" #include "td/utils/Container.h" #include "td/utils/format.h" #include "td/utils/port/Clocks.h" diff --git a/td/telegram/SecretChatsManager.cpp b/td/telegram/SecretChatsManager.cpp index 704ba511..9060efb4 100644 --- a/td/telegram/SecretChatsManager.cpp +++ b/td/telegram/SecretChatsManager.cpp @@ -29,6 +29,7 @@ #include "td/db/binlog/BinlogEvent.h" #include "td/db/binlog/BinlogInterface.h" +#include "td/utils/common.h" #include "td/utils/format.h" #include "td/utils/logging.h" #include "td/utils/misc.h" diff --git a/td/telegram/SecureManager.h b/td/telegram/SecureManager.h index 8477e681..c2d92e75 100644 --- a/td/telegram/SecureManager.h +++ b/td/telegram/SecureManager.h @@ -17,6 +17,7 @@ #include "td/actor/actor.h" #include "td/actor/PromiseFuture.h" +#include "td/utils/common.h" #include "td/utils/Container.h" #include "td/utils/Status.h" diff --git a/td/telegram/TdDb.cpp b/td/telegram/TdDb.cpp index 3b86a19b..4c558440 100644 --- a/td/telegram/TdDb.cpp +++ b/td/telegram/TdDb.cpp @@ -23,6 +23,7 @@ #include "td/db/SqliteKeyValueAsync.h" #include "td/db/SqliteKeyValueSafe.h" +#include "td/utils/common.h" #include "td/utils/logging.h" #include "td/utils/port/path.h" #include "td/utils/Random.h" diff --git a/td/telegram/WallpaperManager.h b/td/telegram/WallpaperManager.h index 4885ee60..c2f413fa 100644 --- a/td/telegram/WallpaperManager.h +++ b/td/telegram/WallpaperManager.h @@ -15,6 +15,7 @@ #include "td/actor/actor.h" #include "td/actor/PromiseFuture.h" +#include "td/utils/common.h" #include "td/utils/Status.h" namespace td { diff --git a/td/telegram/cli.cpp b/td/telegram/cli.cpp index 8e6f38d7..ca4c6e43 100644 --- a/td/telegram/cli.cpp +++ b/td/telegram/cli.cpp @@ -20,6 +20,7 @@ #include "td/utils/base64.h" #include "td/utils/buffer.h" +#include "td/utils/common.h" #include "td/utils/FileLog.h" #include "td/utils/format.h" #include "td/utils/JsonBuilder.h" diff --git a/td/telegram/files/FileDb.h b/td/telegram/files/FileDb.h index b14bdbda..89303466 100644 --- a/td/telegram/files/FileDb.h +++ b/td/telegram/files/FileDb.h @@ -12,6 +12,7 @@ #include "td/actor/PromiseFuture.h" #include "td/utils/buffer.h" +#include "td/utils/common.h" #include "td/utils/logging.h" #include "td/utils/Status.h" #include "td/utils/tl_storers.h" diff --git a/td/telegram/files/FileHashUploader.cpp b/td/telegram/files/FileHashUploader.cpp index d1c5fc84..a79b918b 100644 --- a/td/telegram/files/FileHashUploader.cpp +++ b/td/telegram/files/FileHashUploader.cpp @@ -14,6 +14,7 @@ #include "td/telegram/net/NetQueryDispatcher.h" #include "td/utils/buffer.h" +#include "td/utils/common.h" #include "td/utils/crypto.h" #include "td/utils/logging.h" #include "td/utils/MimeType.h" diff --git a/td/telegram/files/FileLoader.cpp b/td/telegram/files/FileLoader.cpp index 180cd189..a5c8ec2f 100644 --- a/td/telegram/files/FileLoader.cpp +++ b/td/telegram/files/FileLoader.cpp @@ -11,6 +11,7 @@ #include "td/telegram/net/NetQueryDispatcher.h" #include "td/telegram/UniqueId.h" +#include "td/utils/common.h" #include "td/utils/format.h" #include "td/utils/logging.h" #include "td/utils/misc.h" diff --git a/td/telegram/files/FileUploader.cpp b/td/telegram/files/FileUploader.cpp index 094a08cd..b5701bec 100644 --- a/td/telegram/files/FileUploader.cpp +++ b/td/telegram/files/FileUploader.cpp @@ -16,6 +16,7 @@ #include "td/telegram/SecureStorage.h" #include "td/utils/buffer.h" +#include "td/utils/common.h" #include "td/utils/crypto.h" #include "td/utils/format.h" #include "td/utils/logging.h" diff --git a/td/telegram/files/ResourceManager.cpp b/td/telegram/files/ResourceManager.cpp index 4f446ecf..71b4d02f 100644 --- a/td/telegram/files/ResourceManager.cpp +++ b/td/telegram/files/ResourceManager.cpp @@ -6,6 +6,7 @@ // #include "td/telegram/files/ResourceManager.h" +#include "td/utils/common.h" #include "td/utils/format.h" #include "td/utils/logging.h" #include "td/utils/misc.h" diff --git a/td/telegram/logevent/LogEvent.h b/td/telegram/logevent/LogEvent.h index 898004de..cdb427cb 100644 --- a/td/telegram/logevent/LogEvent.h +++ b/td/telegram/logevent/LogEvent.h @@ -10,6 +10,7 @@ #include "td/telegram/Version.h" #include "td/utils/buffer.h" +#include "td/utils/common.h" #include "td/utils/format.h" #include "td/utils/logging.h" #include "td/utils/Slice.h" diff --git a/td/telegram/logevent/LogEventHelper.h b/td/telegram/logevent/LogEventHelper.h index 16bce3ac..d2fbe27a 100644 --- a/td/telegram/logevent/LogEventHelper.h +++ b/td/telegram/logevent/LogEventHelper.h @@ -13,6 +13,7 @@ #include "td/telegram/Global.h" #include "td/telegram/TdDb.h" +#include "td/utils/common.h" #include "td/utils/Status.h" namespace td { diff --git a/td/telegram/net/ConnectionCreator.h b/td/telegram/net/ConnectionCreator.h index 1d0a2d3e..1ceb0631 100644 --- a/td/telegram/net/ConnectionCreator.h +++ b/td/telegram/net/ConnectionCreator.h @@ -23,6 +23,7 @@ #include "td/net/NetStats.h" +#include "td/utils/common.h" #include "td/utils/FloodControlStrict.h" #include "td/utils/logging.h" #include "td/utils/port/IPAddress.h" diff --git a/td/telegram/net/NetQueryDelayer.cpp b/td/telegram/net/NetQueryDelayer.cpp index 0c0c9c6d..40268eb9 100644 --- a/td/telegram/net/NetQueryDelayer.cpp +++ b/td/telegram/net/NetQueryDelayer.cpp @@ -9,6 +9,7 @@ #include "td/telegram/Global.h" #include "td/telegram/net/NetQueryDispatcher.h" +#include "td/utils/common.h" #include "td/utils/format.h" #include "td/utils/logging.h" #include "td/utils/misc.h" diff --git a/td/telegram/net/NetStatsManager.cpp b/td/telegram/net/NetStatsManager.cpp index 88e5b504..5b1aad2a 100644 --- a/td/telegram/net/NetStatsManager.cpp +++ b/td/telegram/net/NetStatsManager.cpp @@ -15,6 +15,7 @@ #include "td/telegram/TdDb.h" #include "td/telegram/Version.h" +#include "td/utils/common.h" #include "td/utils/logging.h" #include "td/utils/misc.h" #include "td/utils/tl_helpers.h" diff --git a/td/telegram/net/SessionMultiProxy.cpp b/td/telegram/net/SessionMultiProxy.cpp index ed7cb444..f82505fb 100644 --- a/td/telegram/net/SessionMultiProxy.cpp +++ b/td/telegram/net/SessionMultiProxy.cpp @@ -8,6 +8,7 @@ #include "td/telegram/net/SessionProxy.h" +#include "td/utils/common.h" #include "td/utils/format.h" #include "td/utils/logging.h" #include "td/utils/Slice.h" diff --git a/td/telegram/net/SessionProxy.cpp b/td/telegram/net/SessionProxy.cpp index 1a6b20bc..4027c5ef 100644 --- a/td/telegram/net/SessionProxy.cpp +++ b/td/telegram/net/SessionProxy.cpp @@ -14,6 +14,7 @@ #include "td/actor/PromiseFuture.h" +#include "td/utils/common.h" #include "td/utils/logging.h" #include "td/utils/Slice.h" diff --git a/tdactor/td/actor/SleepActor.h b/tdactor/td/actor/SleepActor.h index 284c3e4f..1d53d393 100644 --- a/tdactor/td/actor/SleepActor.h +++ b/tdactor/td/actor/SleepActor.h @@ -7,9 +7,10 @@ #pragma once #include "td/actor/actor.h" - #include "td/actor/PromiseFuture.h" +#include "td/utils/common.h" + namespace td { class SleepActor : public Actor { diff --git a/tdactor/td/actor/impl/Actor.h b/tdactor/td/actor/impl/Actor.h index 18b3e25f..c82a85db 100644 --- a/tdactor/td/actor/impl/Actor.h +++ b/tdactor/td/actor/impl/Actor.h @@ -10,7 +10,7 @@ #include "td/actor/impl/EventFull-decl.h" #include "td/actor/impl/Scheduler-decl.h" -#include "td/utils/logging.h" +#include "td/utils/common.h" #include "td/utils/ObjectPool.h" #include "td/utils/Slice.h" @@ -115,8 +115,7 @@ inline ActorId<> Actor::actor_id() { } template ActorId Actor::actor_id(SelfT *self) { - LOG_CHECK(static_cast(self) == this) - << self << " " << static_cast(self) << " " << this << " " << empty(); + CHECK(static_cast(self) == this); return ActorId(info_.get_weak()); } @@ -125,8 +124,7 @@ inline ActorShared<> Actor::actor_shared() { } template ActorShared Actor::actor_shared(SelfT *self, uint64 id) { - LOG_CHECK(static_cast(self) == this) - << self << " " << static_cast(self) << " " << this << " " << empty(); + CHECK(static_cast(self) == this); return ActorShared(actor_id(self), id); } diff --git a/tdactor/td/actor/impl/Scheduler.h b/tdactor/td/actor/impl/Scheduler.h index 140cfbd6..978018fa 100644 --- a/tdactor/td/actor/impl/Scheduler.h +++ b/tdactor/td/actor/impl/Scheduler.h @@ -9,6 +9,7 @@ #include "td/actor/impl/ActorInfo-decl.h" #include "td/actor/impl/Scheduler-decl.h" +#include "td/utils/common.h" #include "td/utils/format.h" #include "td/utils/Heap.h" #include "td/utils/logging.h" diff --git a/tdactor/test/actors_main.cpp b/tdactor/test/actors_main.cpp index f75727c0..31f93247 100644 --- a/tdactor/test/actors_main.cpp +++ b/tdactor/test/actors_main.cpp @@ -9,6 +9,7 @@ #include "td/actor/actor.h" #include "td/actor/PromiseFuture.h" +#include "td/utils/common.h" #include "td/utils/logging.h" #include "td/utils/Random.h" diff --git a/tdactor/test/actors_simple.cpp b/tdactor/test/actors_simple.cpp index 15994891..17bc7366 100644 --- a/tdactor/test/actors_simple.cpp +++ b/tdactor/test/actors_simple.cpp @@ -12,6 +12,7 @@ #include "td/actor/SleepActor.h" #include "td/actor/Timeout.h" +#include "td/utils/common.h" #include "td/utils/logging.h" #include "td/utils/MpscPollableQueue.h" #include "td/utils/Observer.h" diff --git a/tddb/td/db/SqliteDb.cpp b/tddb/td/db/SqliteDb.cpp index e777679b..92a3621f 100644 --- a/tddb/td/db/SqliteDb.cpp +++ b/tddb/td/db/SqliteDb.cpp @@ -6,6 +6,7 @@ // #include "td/db/SqliteDb.h" +#include "td/utils/common.h" #include "td/utils/format.h" #include "td/utils/port/path.h" #include "td/utils/port/Stat.h" diff --git a/tddb/td/db/SqliteKeyValueAsync.cpp b/tddb/td/db/SqliteKeyValueAsync.cpp index c2c1ab56..405ae1f9 100644 --- a/tddb/td/db/SqliteKeyValueAsync.cpp +++ b/tddb/td/db/SqliteKeyValueAsync.cpp @@ -8,6 +8,7 @@ #include "td/actor/actor.h" +#include "td/utils/common.h" #include "td/utils/optional.h" #include "td/utils/Time.h" diff --git a/tdnet/td/net/GetHostByNameActor.cpp b/tdnet/td/net/GetHostByNameActor.cpp index b8a02ce0..b28ee15b 100644 --- a/tdnet/td/net/GetHostByNameActor.cpp +++ b/tdnet/td/net/GetHostByNameActor.cpp @@ -10,6 +10,7 @@ #include "td/net/SslStream.h" #include "td/net/Wget.h" +#include "td/utils/common.h" #include "td/utils/JsonBuilder.h" #include "td/utils/logging.h" #include "td/utils/misc.h" diff --git a/tdnet/td/net/HttpConnectionBase.cpp b/tdnet/td/net/HttpConnectionBase.cpp index 3a539139..c03b73ba 100644 --- a/tdnet/td/net/HttpConnectionBase.cpp +++ b/tdnet/td/net/HttpConnectionBase.cpp @@ -8,6 +8,7 @@ #include "td/net/HttpHeaderCreator.h" +#include "td/utils/common.h" #include "td/utils/logging.h" #include "td/utils/misc.h" #include "td/utils/port/detail/PollableFd.h" diff --git a/tdnet/td/net/HttpProxy.cpp b/tdnet/td/net/HttpProxy.cpp index 712ed6b4..6aee2cf7 100644 --- a/tdnet/td/net/HttpProxy.cpp +++ b/tdnet/td/net/HttpProxy.cpp @@ -7,6 +7,7 @@ #include "td/net/HttpProxy.h" #include "td/utils/base64.h" +#include "td/utils/common.h" #include "td/utils/format.h" #include "td/utils/logging.h" #include "td/utils/misc.h" diff --git a/tdnet/td/net/Socks5.cpp b/tdnet/td/net/Socks5.cpp index 9993ce6e..0115dcaf 100644 --- a/tdnet/td/net/Socks5.cpp +++ b/tdnet/td/net/Socks5.cpp @@ -6,6 +6,7 @@ // #include "td/net/Socks5.h" +#include "td/utils/common.h" #include "td/utils/logging.h" #include "td/utils/misc.h" #include "td/utils/Slice.h" diff --git a/tdnet/td/net/SslStream.cpp b/tdnet/td/net/SslStream.cpp index 013de44e..b737b34b 100644 --- a/tdnet/td/net/SslStream.cpp +++ b/tdnet/td/net/SslStream.cpp @@ -6,6 +6,7 @@ // #include "td/net/SslStream.h" +#include "td/utils/common.h" #include "td/utils/logging.h" #include "td/utils/misc.h" #include "td/utils/port/wstring_convert.h" diff --git a/tdutils/td/utils/BufferedFd.h b/tdutils/td/utils/BufferedFd.h index 911e0009..61146daa 100644 --- a/tdutils/td/utils/BufferedFd.h +++ b/tdutils/td/utils/BufferedFd.h @@ -7,6 +7,7 @@ #pragma once #include "td/utils/buffer.h" +#include "td/utils/common.h" #include "td/utils/format.h" #include "td/utils/logging.h" #include "td/utils/port/detail/PollableFd.h" diff --git a/tdutils/td/utils/BufferedUdp.h b/tdutils/td/utils/BufferedUdp.h index 4c7df9a4..b3c36040 100644 --- a/tdutils/td/utils/BufferedUdp.h +++ b/tdutils/td/utils/BufferedUdp.h @@ -7,6 +7,7 @@ #pragma once #include "td/utils/buffer.h" +#include "td/utils/common.h" #include "td/utils/logging.h" #include "td/utils/optional.h" #include "td/utils/port/detail/PollableFd.h" diff --git a/tdutils/td/utils/GzipByteFlow.cpp b/tdutils/td/utils/GzipByteFlow.cpp index 2bdc67e7..f8d38fac 100644 --- a/tdutils/td/utils/GzipByteFlow.cpp +++ b/tdutils/td/utils/GzipByteFlow.cpp @@ -9,6 +9,7 @@ char disable_linker_warning_about_empty_file_gzipbyteflow_cpp TD_UNUSED; #if TD_HAVE_ZLIB +#include "td/utils/common.h" #include "td/utils/Status.h" namespace td { diff --git a/tdutils/td/utils/MpscPollableQueue.h b/tdutils/td/utils/MpscPollableQueue.h index 4f53a1a2..9167cbc7 100644 --- a/tdutils/td/utils/MpscPollableQueue.h +++ b/tdutils/td/utils/MpscPollableQueue.h @@ -6,6 +6,7 @@ // #pragma once +#include "td/utils/common.h" #include "td/utils/misc.h" #include "td/utils/port/EventFd.h" diff --git a/tdutils/td/utils/Parser.h b/tdutils/td/utils/Parser.h index 637851bf..09584ea2 100644 --- a/tdutils/td/utils/Parser.h +++ b/tdutils/td/utils/Parser.h @@ -6,6 +6,7 @@ // #pragma once +#include "td/utils/common.h" #include "td/utils/format.h" #include "td/utils/logging.h" #include "td/utils/Slice.h" diff --git a/tdutils/td/utils/Slice.h b/tdutils/td/utils/Slice.h index 4544b961..4273f9fd 100644 --- a/tdutils/td/utils/Slice.h +++ b/tdutils/td/utils/Slice.h @@ -6,6 +6,7 @@ // #pragma once +#include "td/utils/common.h" #include "td/utils/Slice-decl.h" #include diff --git a/tdutils/td/utils/port/ServerSocketFd.cpp b/tdutils/td/utils/port/ServerSocketFd.cpp index 8b49d4d5..75a2c99b 100644 --- a/tdutils/td/utils/port/ServerSocketFd.cpp +++ b/tdutils/td/utils/port/ServerSocketFd.cpp @@ -8,6 +8,7 @@ #include "td/utils/port/config.h" +#include "td/utils/common.h" #include "td/utils/logging.h" #include "td/utils/port/IPAddress.h" #include "td/utils/port/PollFlags.h" diff --git a/tdutils/td/utils/port/SocketFd.cpp b/tdutils/td/utils/port/SocketFd.cpp index 72717d96..afda5ee2 100644 --- a/tdutils/td/utils/port/SocketFd.cpp +++ b/tdutils/td/utils/port/SocketFd.cpp @@ -6,6 +6,7 @@ // #include "td/utils/port/SocketFd.h" +#include "td/utils/common.h" #include "td/utils/logging.h" #include "td/utils/misc.h" #include "td/utils/port/PollFlags.h" diff --git a/tdutils/td/utils/port/detail/PollableFd.h b/tdutils/td/utils/port/detail/PollableFd.h index 1c2381d9..06eddaa5 100644 --- a/tdutils/td/utils/port/detail/PollableFd.h +++ b/tdutils/td/utils/port/detail/PollableFd.h @@ -6,6 +6,7 @@ // #pragma once +#include "td/utils/common.h" #include "td/utils/format.h" #include "td/utils/List.h" #include "td/utils/logging.h" diff --git a/tdutils/test/HazardPointers.cpp b/tdutils/test/HazardPointers.cpp index 28e148d6..2fe3fd25 100644 --- a/tdutils/test/HazardPointers.cpp +++ b/tdutils/test/HazardPointers.cpp @@ -4,6 +4,7 @@ // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // +#include "td/utils/common.h" #include "td/utils/HazardPointers.h" #include "td/utils/logging.h" #include "td/utils/port/thread.h" diff --git a/tdutils/test/MpmcQueue.cpp b/tdutils/test/MpmcQueue.cpp index 6bafd149..52de4fd5 100644 --- a/tdutils/test/MpmcQueue.cpp +++ b/tdutils/test/MpmcQueue.cpp @@ -4,6 +4,7 @@ // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // +#include "td/utils/common.h" #include "td/utils/logging.h" #include "td/utils/MpmcQueue.h" #include "td/utils/port/thread.h" diff --git a/tdutils/test/MpscLinkQueue.cpp b/tdutils/test/MpscLinkQueue.cpp index 5a74ed81..957992b4 100644 --- a/tdutils/test/MpscLinkQueue.cpp +++ b/tdutils/test/MpscLinkQueue.cpp @@ -4,6 +4,7 @@ // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // +#include "td/utils/common.h" #include "td/utils/format.h" #include "td/utils/logging.h" #include "td/utils/MpscLinkQueue.h" diff --git a/tdutils/test/misc.cpp b/tdutils/test/misc.cpp index d8595230..0cb87d47 100644 --- a/tdutils/test/misc.cpp +++ b/tdutils/test/misc.cpp @@ -8,6 +8,7 @@ #include "td/utils/base64.h" #include "td/utils/BigNum.h" #include "td/utils/bits.h" +#include "td/utils/common.h" #include "td/utils/HttpUrl.h" #include "td/utils/invoke.h" #include "td/utils/logging.h" diff --git a/test/http.cpp b/test/http.cpp index 829db458..463d4aa0 100644 --- a/test/http.cpp +++ b/test/http.cpp @@ -16,6 +16,7 @@ #include "td/utils/buffer.h" #include "td/utils/BufferedFd.h" #include "td/utils/ByteFlow.h" +#include "td/utils/common.h" #include "td/utils/crypto.h" #include "td/utils/format.h" #include "td/utils/Gzip.h" diff --git a/test/main.cpp b/test/main.cpp index 3591de6b..20647048 100644 --- a/test/main.cpp +++ b/test/main.cpp @@ -6,6 +6,7 @@ // #include "td/utils/tests.h" +#include "td/utils/common.h" #include "td/utils/logging.h" #include diff --git a/test/mtproto.cpp b/test/mtproto.cpp index 403e7772..3851de51 100644 --- a/test/mtproto.cpp +++ b/test/mtproto.cpp @@ -27,6 +27,7 @@ #include "td/telegram/NotificationManager.h" #include "td/utils/base64.h" +#include "td/utils/common.h" #include "td/utils/logging.h" #include "td/utils/port/IPAddress.h" #include "td/utils/port/SocketFd.h" diff --git a/test/secret.cpp b/test/secret.cpp index 3a8e3827..9349a24c 100644 --- a/test/secret.cpp +++ b/test/secret.cpp @@ -28,6 +28,7 @@ #include "td/utils/base64.h" #include "td/utils/buffer.h" +#include "td/utils/common.h" #include "td/utils/crypto.h" #include "td/utils/format.h" #include "td/utils/Gzip.h" diff --git a/test/tdclient.cpp b/test/tdclient.cpp index 3d5e0cab..b4f850c1 100644 --- a/test/tdclient.cpp +++ b/test/tdclient.cpp @@ -15,6 +15,7 @@ #include "td/utils/base64.h" #include "td/utils/BufferedFd.h" +#include "td/utils/common.h" #include "td/utils/filesystem.h" #include "td/utils/format.h" #include "td/utils/logging.h"