X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Futil.h;h=d87a0e827d16e5c2d80629c84b8af4e5ef3b3769;hp=3292a32eb9878890efd45d43845699d536f304c8;hb=b61e9afca45dacd9baefbcfa17dbea2af75259b8;hpb=85cc44d618877b8dbedf56fd8f5454a948a636a3;ds=sidebyside diff --git a/src/util.h b/src/util.h index 3292a32e..d87a0e82 100644 --- a/src/util.h +++ b/src/util.h @@ -30,6 +30,17 @@ # define HOT #endif /* __GNUC__ */ + +#if 0 +#ifdef WITH_FUSE +#define atomic_inc(ptr) \ + __sync_fetch_and_add(ptr, 1) + +#define atomic_dec(ptr) \ + __sync_sub_and_fetch(ptr, 1) +#endif +#endif + #ifndef _NTFS_TYPES_H typedef uint8_t u8; typedef uint16_t u16;