> An alternative might be to use /usr/include/asm/atomic.h as this has > atomic_inc and atomic_dec macros already defined. I would also be more > portable. This file doesn't exist on my systems.