project for a (works on my devices) demo

This commit is contained in:
beno
2026-03-13 16:38:39 +01:00
parent 3b13017f39
commit a70999a15c
17 changed files with 1113 additions and 61 deletions

17
threading.h Normal file
View File

@@ -0,0 +1,17 @@
#pragma once
/* https://stackoverflow.com/questions/61647896/unknown-type-name-pthread-barrier-t */
/*
-std=c99 is bad for this,
use
-std=gnu99
or if keeping -std=c99
use either
#define _XOPEN_SOURCE 600
or
#define _POSIX_C_SOURCE 200112L
*/
#define _POSIX_C_SOURCE 200112L /* Or higher */
#include <pthread.h>