From e06edc67c049c65c3952a8447e22717a0f492020 Mon Sep 17 00:00:00 2001 From: eska Date: Tue, 31 Jan 2017 03:46:30 +0100 Subject: Enable WebGL2 in web export, start fixing build Will not yet compile --- core/safe_refcount.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'core/safe_refcount.cpp') diff --git a/core/safe_refcount.cpp b/core/safe_refcount.cpp index ede37bbe8a..50617f2062 100644 --- a/core/safe_refcount.cpp +++ b/core/safe_refcount.cpp @@ -44,6 +44,14 @@ uint32_t atomic_conditional_increment( register uint32_t * pw ) { return *pw; } +uint32_t atomic_increment( register uint32_t * pw ) { + + (*pw)++; + + return *pw; + +} + uint32_t atomic_decrement( register uint32_t * pw ) { (*pw)--; -- cgit v1.2.3