Add ast_atomic_fetchadd_int_slow to check_expr for platforms that need it.
authorJoshua Colp <jcolp@digium.com>
Mon, 10 Dec 2007 16:48:18 +0000 (16:48 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 10 Dec 2007 16:48:18 +0000 (16:48 +0000)
(closes issue #11484)
Reported by: snuffy

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@92206 65c4cc65-6c06-0410-ace0-fbb531ad65f3

utils/check_expr.c

index fd679ad..00d00d8 100644 (file)
@@ -148,6 +148,14 @@ void parse_file(const char *fname);
 void ast_register_file_version(const char *file, const char *version) { }
 int ast_add_profile(const char *x, uint64_t scale) { return 0;} 
 
+int ast_atomic_fetchadd_int_slow(volatile int *p, int v)
+{
+        int ret;
+        ret = *p;
+        *p += v;
+        return ret;
+}
+
 void ast_unregister_file_version(const char *file)
 {
 }