colourpicker

Simple Colour Picker written in C
git clone anongit@rnpnr.xyz:colourpicker.git
Log | Files | Refs | Feed | Submodules | README | LICENSE

Commit: 60c03b7a15180df77da6160847d09da51f8cdb89
Parent: 8c1d52c4ca3f2cf6e85c984dca3b8e1d10b9425e
Author: Randy Palamar
Date:   Tue, 30 Jul 2024 21:35:32 -0600

set -std=c11 in build flags

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

diff --git a/build.sh b/build.sh @@ -1,6 +1,6 @@ #!/bin/sh -cflags="-march=native -O3 -Wall" +cflags="-march=native -std=c11 -O3 -Wall" ldflags="-lraylib" debug=${DEBUG} @@ -28,6 +28,8 @@ fi if [ "$debug" ]; then # Hot Reloading/Debugging cflags="$cflags -O0 -ggdb -D_DEBUG" + # NOTE: needed for sync(3p) + cflags="$cflags -D_XOPEN_SOURCE=600" libcflags="$cflags -fPIC" libldflags="$ldflags -shared" diff --git a/util.c b/util.c @@ -7,6 +7,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