]> wimlib.net Git - wimlib/blobdiff - src/util.h
--disable-multithreaded-compression option
[wimlib] / src / util.h
index 3292a32eb9878890efd45d43845699d536f304c8..08a661b8d34572de7e02a37a28406f6335921d24 100644 (file)
 #      define HOT
 #endif /* __GNUC__ */
 
+#ifdef WITH_FUSE
+#define atomic_inc(ptr) \
+       __sync_fetch_and_add(ptr, 1)
+
+#define atomic_dec(ptr) \
+       __sync_sub_and_fetch(ptr, 1)
+#endif
+
 #ifndef _NTFS_TYPES_H
 typedef uint8_t  u8;
 typedef uint16_t u16;