Mercurial > hg > orthanc
diff OrthancServer/Sources/OrthancInitialization.cpp @ 5357:fddb5d8d0021
Prevent the leak of the full path of the source files in the binaries
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 06 Jul 2023 17:04:31 +0200 |
parents | 3de0235dedb6 |
children | 59e3b6f8c5be |
line wrap: on
line diff
--- a/OrthancServer/Sources/OrthancInitialization.cpp Tue Jul 04 18:39:52 2023 +0200 +++ b/OrthancServer/Sources/OrthancInitialization.cpp Thu Jul 06 17:04:31 2023 +0200 @@ -52,6 +52,12 @@ #include <dcmtk/dcmnet/diutil.h> // For DCM_dcmnetLogger #if ORTHANC_ENABLE_PLUGINS == 1 +# if defined(__ORTHANC_FILE__) +// Prevents the system-wide Google Protobuf library from leaking the +// full path of this source file +# undef __FILE__ +# define __FILE__ __ORTHANC_FILE__ +# endif # include <google/protobuf/any.h> #endif