Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
5354:65b4e6ae2703 | 5357:fddb5d8d0021 |
---|---|
50 #include <OrthancServerResources.h> | 50 #include <OrthancServerResources.h> |
51 | 51 |
52 #include <dcmtk/dcmnet/diutil.h> // For DCM_dcmnetLogger | 52 #include <dcmtk/dcmnet/diutil.h> // For DCM_dcmnetLogger |
53 | 53 |
54 #if ORTHANC_ENABLE_PLUGINS == 1 | 54 #if ORTHANC_ENABLE_PLUGINS == 1 |
55 # if defined(__ORTHANC_FILE__) | |
56 // Prevents the system-wide Google Protobuf library from leaking the | |
57 // full path of this source file | |
58 # undef __FILE__ | |
59 # define __FILE__ __ORTHANC_FILE__ | |
60 # endif | |
55 # include <google/protobuf/any.h> | 61 # include <google/protobuf/any.h> |
56 #endif | 62 #endif |
57 | 63 |
58 | 64 |
59 static const char* const STORAGE_DIRECTORY = "StorageDirectory"; | 65 static const char* const STORAGE_DIRECTORY = "StorageDirectory"; |