]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Avoid mentioning __TIME__ and friends literally in header file
authorJoel Rosdahl <joel@rosdahl.net>
Thu, 17 Sep 2020 13:43:37 +0000 (15:43 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 17 Sep 2020 20:17:51 +0000 (22:17 +0200)
Having them in the header files disables direct mode when compiling
ccache itself.

src/hashutil.hpp

index aa85cd554418182360d70c77ec309a860cdf396d..ae7bcb0cf4b961adf7f27a46522dbee97db3e4ff 100644 (file)
@@ -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