Mercurial > octave-libtiff
changeset 30177:2f39642b9084
maint: f77-fcn.h: Use C++ named union declaration rather than C-style typedef.
* f77-fcn.h: Use C++ named union declaration for "octave_cray_descriptor"
rather than C-style typedef.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 14 Sep 2021 17:11:55 -0700 |
parents | 0cd93ca0b237 |
children | d0184bad0c07 |
files | liboctave/util/f77-fcn.h |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/util/f77-fcn.h Tue Sep 14 16:59:56 2021 -0700 +++ b/liboctave/util/f77-fcn.h Tue Sep 14 17:11:55 2021 -0700 @@ -150,7 +150,7 @@ /* FIXME: These should work for SV1 or Y-MP systems but will need to be changed for others. */ -typedef union +union octave_cray_descriptor { const char *const_ptr; char *ptr; @@ -160,7 +160,7 @@ unsigned len : 26; unsigned add : 32; } mask; -} octave_cray_descriptor; +}; typedef void *octave_cray_ftn_ch_dsc;