# HG changeset patch # User Sebastien Jodogne # Date 1688670485 -7200 # Node ID 165b67c02927265593c5156150c8d2a1de7e5160 # Parent 035ebc5b227c8084f5ec45d0a30698481471f3a9 fix diff -r 035ebc5b227c -r 165b67c02927 OrthancServer/Resources/PreventProtobufDirectoryLeaks.py --- a/OrthancServer/Resources/PreventProtobufDirectoryLeaks.py Thu Jul 06 19:40:13 2023 +0200 +++ b/OrthancServer/Resources/PreventProtobufDirectoryLeaks.py Thu Jul 06 21:08:05 2023 +0200 @@ -31,8 +31,9 @@ s = s.replace('__FILE__', '__ORTHANC_FILE__') s = """ -#undef __FILE__ -#define __FILE__ __ORTHANC_FILE__ +#if !defined(__ORTHANC_FILE__) +# define __ORTHANC_FILE__ __FILE__ +#endif """ + s with open(sys.argv[1], 'w') as f: