[llvm-commits] [llvm] r71770 - /llvm/trunk/include/llvm/System/Atomic.h

Duncan Sands baldrick at free.fr
Thu May 14 00:36:25 PDT 2009


Hi Owen,

> +#include "llvm/Config/config.h"
> +
> +#ifdef __APPLE__
> +#include <libkern/OSAtomic.h>
> +#elif LLVM_ON_WIN32
> +#include <windows.h>
> +#endif
> +
> +
> +#ifndef LLVM_SYSTEM_ATOMIC_H
> +#define LLVM_SYSTEM_ATOMIC_H

the usual style seems to be to put this (#ifndef) before
any includes.

> +#warning No memory fence implementation found for you platform!

you platform -> your platform

Ciao,

Duncan.



More information about the llvm-commits mailing list