aboutsummaryrefslogtreecommitdiff
path: root/src/include/common/file_utils.h
diff options
context:
space:
mode:
authorThomas Munro <tmunro@postgresql.org>2023-12-12 09:31:44 +1300
committerThomas Munro <tmunro@postgresql.org>2023-12-12 09:46:46 +1300
commitbaf7c93ed583949d837bc13f24a15a0efbcb1ae7 (patch)
treed91ee95cb325a3b6194fc681931a1b33bb0e653a /src/include/common/file_utils.h
parent0a5c46a7a488f2f4260a90843bb9de6c584c7f4e (diff)
downloadpostgresql-baf7c93ed583949d837bc13f24a15a0efbcb1ae7.tar.gz
postgresql-baf7c93ed583949d837bc13f24a15a0efbcb1ae7.zip
Define unconstify() and unvolatize() for C++.
These two macros wouldn't work if used in an inline function definition in a header seen by g++, because __builtin_types_compatible_p is only available in C. Redirect to standard C++ const_cast (which also adds/removes volatile despite its name). Per cpluspluscheck failure in a development branch. Suggested-by: Peter Eisentraut <peter@eisentraut.org> Discussion: https://postgr.es/m/CA%2BhUKGK3OXFjkOyZiw-DgL2bUqk9by1uGuCnViJX786W%2BfyDSw%40mail.gmail.com
Diffstat (limited to 'src/include/common/file_utils.h')
0 files changed, 0 insertions, 0 deletions