Take __weak out of the compiler namespace
authorBruce Cran <BCran@fusionio.com>
Sun, 10 Jul 2011 18:56:23 +0000 (20:56 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Sun, 10 Jul 2011 18:56:23 +0000 (20:56 +0200)
commitc3d3178b0e14dc1612b397f115d7853200b62146
tree989d54c3cff680fb479fb2bfeb37420bcf5436ac
parent9918be5a9bfe2819cccdb9f975f2b9d4d36f3f70
Take __weak out of the compiler namespace

With Xcode 4 on OS X shipping LLVM by default, I tried building fio with
clang and found that the definition of __weak conflicts with something
clang defines.  I've attached a patch which replaces the double
underscores with a single underscore, removing it from the
compiler-dependant namespace.

Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
compiler/compiler.h
helpers.c
helpers.h