summaryrefslogtreecommitdiffstats
path: root/gfx/cairo/cairo/meson-cc-tests/atomic-ops-gcc-legacy.c
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/cairo/cairo/meson-cc-tests/atomic-ops-gcc-legacy.c')
-rw-r--r--gfx/cairo/cairo/meson-cc-tests/atomic-ops-gcc-legacy.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gfx/cairo/cairo/meson-cc-tests/atomic-ops-gcc-legacy.c b/gfx/cairo/cairo/meson-cc-tests/atomic-ops-gcc-legacy.c
new file mode 100644
index 0000000000..99331968dd
--- /dev/null
+++ b/gfx/cairo/cairo/meson-cc-tests/atomic-ops-gcc-legacy.c
@@ -0,0 +1,3 @@
+int atomic_add(int i) { return __sync_fetch_and_add (&i, 1); }
+int atomic_cmpxchg(int i, int j, int k) { return __sync_val_compare_and_swap (&i, j, k); }
+int main(void) { return 0; }