]> wimlib.net Git - wimlib/blobdiff - src/util.h
Various portability fixes
[wimlib] / src / util.h
index 3292a32eb9878890efd45d43845699d536f304c8..d87a0e827d16e5c2d80629c84b8af4e5ef3b3769 100644 (file)
 #      define HOT
 #endif /* __GNUC__ */
 
 #      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;
 #ifndef _NTFS_TYPES_H
 typedef uint8_t  u8;
 typedef uint16_t u16;