Mercurial > mxe-octave
annotate src/of-dicom-1-fixes.patch @ 4733:1ecb1e67eaa1
* src/src-msys-dos2unix.mk: update checksum
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Sat, 09 Jun 2018 10:13:46 -0400 |
parents | ff17e8f333ae |
children |
rev | line source |
---|---|
4687
ff17e8f333ae
dicom: fix build for file_stat only in octave::sys namespace
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
1 diff -uNr a/src/isdicom.cpp b/src/isdicom.cpp |
ff17e8f333ae
dicom: fix build for file_stat only in octave::sys namespace
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
2 --- a/src/isdicom.cpp 2018-04-08 19:19:05.638729302 -0400 |
ff17e8f333ae
dicom: fix build for file_stat only in octave::sys namespace
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
3 +++ b/src/isdicom.cpp 2018-04-25 10:44:45.240179042 -0400 |
ff17e8f333ae
dicom: fix build for file_stat only in octave::sys namespace
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
4 @@ -32,7 +32,7 @@ |
ff17e8f333ae
dicom: fix build for file_stat only in octave::sys namespace
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
5 reader.SetFileName (filename.c_str ()); |
ff17e8f333ae
dicom: fix build for file_stat only in octave::sys namespace
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
6 // gdcm::Reader.Read() will return false if the file does not exists but |
ff17e8f333ae
dicom: fix build for file_stat only in octave::sys namespace
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
7 // also prints to stderr so we check it first. |
ff17e8f333ae
dicom: fix build for file_stat only in octave::sys namespace
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
8 - return file_stat (filename).exists () && reader.Read (); |
ff17e8f333ae
dicom: fix build for file_stat only in octave::sys namespace
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
9 + return octave::sys::file_stat (filename).exists () && reader.Read (); |
ff17e8f333ae
dicom: fix build for file_stat only in octave::sys namespace
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
10 } |
ff17e8f333ae
dicom: fix build for file_stat only in octave::sys namespace
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
11 |
ff17e8f333ae
dicom: fix build for file_stat only in octave::sys namespace
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
12 DEFUN_DLD (isdicom, args, , |