#pragma once #include inline LONG InterlockedIncrement(LONG volatile *p) { return __sync_add_and_fetch(p, 1); }