diff --git a/jansson/2.1.2/include/jansson.h b/jansson/2.1.2/include/jansson.h index e4e73e2f9a524043405c38e46195db1a156c0c02..56566ebf2f95e20fbc935195c5c7fc53fa7a6482 100644 --- a/jansson/2.1.2/include/jansson.h +++ b/jansson/2.1.2/include/jansson.h @@ -106,16 +106,16 @@ json_t *json_false(void); json_t *json_null(void); /* do not call JSON_INTERNAL_INCREF or JSON_INTERNAL_DECREF directly */ -#if JSON_HAVE_ATOMIC_BUILTINS -#define JSON_INTERNAL_INCREF(json) __atomic_add_fetch(&json->refcount, 1, __ATOMIC_ACQUIRE) -#define JSON_INTERNAL_DECREF(json) __atomic_sub_fetch(&json->refcount, 1, __ATOMIC_RELEASE) -#elif JSON_HAVE_SYNC_BUILTINS -#define JSON_INTERNAL_INCREF(json) __sync_add_and_fetch(&json->refcount, 1) -#define JSON_INTERNAL_DECREF(json) __sync_sub_and_fetch(&json->refcount, 1) -#else +// #if JSON_HAVE_ATOMIC_BUILTINS +// #define JSON_INTERNAL_INCREF(json) __atomic_add_fetch(&json->refcount, 1, __ATOMIC_ACQUIRE) +// #define JSON_INTERNAL_DECREF(json) __atomic_sub_fetch(&json->refcount, 1, __ATOMIC_RELEASE) +// #elif JSON_HAVE_SYNC_BUILTINS +// #define JSON_INTERNAL_INCREF(json) __sync_add_and_fetch(&json->refcount, 1) +// #define JSON_INTERNAL_DECREF(json) __sync_sub_and_fetch(&json->refcount, 1) +// #else #define JSON_INTERNAL_INCREF(json) (++json->refcount) #define JSON_INTERNAL_DECREF(json) (--json->refcount) -#endif +// #endif static JSON_INLINE json_t *json_incref(json_t *json)