From 077b2eb4e27f4cbfa0528eb5b4ac6766b779cba6 Mon Sep 17 00:00:00 2001 From: IonutParau Date: Tue, 3 Feb 2026 17:00:45 +0100 Subject: [PATCH] we now depend on atomics --- rewrite/neonucleus.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rewrite/neonucleus.c b/rewrite/neonucleus.c index add91c3..b27e538 100644 --- a/rewrite/neonucleus.c +++ b/rewrite/neonucleus.c @@ -10,6 +10,11 @@ // we need the header. #include "neonucleus.h" +// we need atomics for thread-safe reference counting that will be used +// for managing the lifetimes of various resources +// TODO: provide a way to use non-atomic values, and evaluate if the context should contain a method for atomics. +#include + // Based off https://stackoverflow.com/questions/5919996/how-to-detect-reliably-mac-os-x-ios-linux-windows-in-c-preprocessor #if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__) //define something for Windows (32-bit and 64-bit, this part is common)