From dc68fa7a0f86dd7de07726c3cc9dd78761ec9449 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Thu, 17 Sep 2020 15:43:37 +0200 Subject: [PATCH] Avoid mentioning __TIME__ and friends literally in header file Having them in the header files disables direct mode when compiling ccache itself. --- src/hashutil.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hashutil.hpp b/src/hashutil.hpp index aa85cd554..ae7bcb0cf 100644 --- a/src/hashutil.hpp +++ b/src/hashutil.hpp @@ -34,7 +34,8 @@ const int HASH_SOURCE_CODE_FOUND_DATE = (1 << 1); const int HASH_SOURCE_CODE_FOUND_TIME = (1 << 2); const int HASH_SOURCE_CODE_FOUND_TIMESTAMP = (1 << 3); -// Search for the strings "__DATE__", "__TIME__" and "__TIMESTAMP__" in `str`. +// Search for the strings "DATE", "TIME" and "TIMESTAMP" with two surrounding +// underscores in `str`. // // Returns a bitmask with HASH_SOURCE_CODE_FOUND_DATE, // HASH_SOURCE_CODE_FOUND_TIME and HASH_SOURCE_CODE_FOUND_TIMESTAMP set -- 2.47.3