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)