Using std in header was creating ambiguous reference problems for atomic_int.
Fixed by typedefing atomicInt to atomic_int if C, or std::atomic_int if Cpp.
Also made atomicFetchAdd macro to accomplish the same for atomicFetchAdd, though it wasn't causing any problems.
Using std in header was creating ambiguous reference problems for atomic_int. Fixed by typedefing atomicInt to atomic_int if C, or std::atomic_int if Cpp. Also made atomicFetchAdd macro to accomplish the same for atomicFetchAdd, though it wasn't causing any problems.