ogl_beamforming

Ultrasound Beamforming Implemented with OpenGL
git clone anongit@rnpnr.xyz:ogl_beamforming.git
Log | Files | Refs | Feed | Submodules | README | LICENSE

Commit: 26bb15ea111f9dc85fbd484d00ceb89d630f9476
Parent: 181e3334fdbffdc92779e494a4bb5a08cdd263ef
Author: Randy Palamar
Date:   Sat,  5 Apr 2025 11:14:35 -0600

lib: keep beamformer parameters header usable with ancient C

Diffstat:
Mbeamformer_parameters.h | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/beamformer_parameters.h b/beamformer_parameters.h @@ -85,7 +85,10 @@ typedef struct { } BeamformerParameters; #undef X +/* NOTE(rnp): keep this header importable for old C versions */ +#if __STDC_VERSION__ >= 201112L _Static_assert((offsetof(BeamformerParameters, output_min_coordinate) & 15) == 0, "BeamformerParameters.output_min_coordinate must lie on a 16 byte boundary"); _Static_assert((sizeof(BeamformerParameters) & 15) == 0, "sizeof(BeamformerParameters) must be a multiple of 16"); +#endif