ogl_beamforming

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

Commit: 001e7f48eff42b37b1128fd85161f984276e14cc
Parent: 0e8a25fe2aaf000d20cbd3d125521919552e8101
Author: Randy Palamar
Date:   Tue, 20 Aug 2024 12:32:07 -0600

build with std=c11

Diffstat:
Mbuild.sh | 7++++++-
Mutil.h | 4++++
2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/build.sh b/build.sh @@ -1,11 +1,16 @@ #!/bin/sh -cflags="-march=native -O3 -Wall -I./external/include" +cflags="-march=native -std=c11 -O3 -Wall -I./external/include" + ldflags="-lraylib" debug=${DEBUG} cc=${CC:-cc} system_raylib=${USE_SYSTEM_RAYLIB:-$debug} +case $(uname -s) in +Linux*) cflags="$cflags -D_DEFAULT_SOURCE" ;; +esac + if [ "$system_raylib" ]; then ldflags="-L/usr/local/lib $ldflags" else diff --git a/util.h b/util.h @@ -5,6 +5,10 @@ #include <stddef.h> #include <stdint.h> +#ifndef asm +#define asm __asm__ +#endif + #ifdef _DEBUG #define ASSERT(c) do { if (!(c)) asm("int3; nop"); } while (0); #define DEBUG_EXPORT