1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/lib/ccan/likely
Rusty Russell b88e0c40b7 ccan: fix likely redefinition warnings with --enable-tdb2
When we do --enable-tdb2, we start clashing with the replace.h
version:

In file included from ../lib/tdb2/tools/../private.h:25:0,
                 from ../lib/tdb2/tools/tdb2torture.c:60:
../lib/ccan/likely/likely.h:32:0: warning: "likely" redefined
../lib/replace/replace.h:762:0: note: this is the location of the previous definition
../lib/ccan/likely/likely.h:53:0: warning: "unlikely" redefined
../lib/replace/replace.h:765:0: note: this is the location of the previous definition

I don't like to #ifndef-protect them in general, since you don't want
different parts of the code to silently have different definitions,
but it's the simplest fix for now.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-08-31 13:57:14 +09:30
..
test lib: import ccan modules for tdb2 2011-06-20 11:18:34 +02:00
_info lib/ccan: update to init-1192-gdd04041 2011-07-25 12:03:40 +02:00
LICENSE lib: import ccan modules for tdb2 2011-06-20 11:18:34 +02:00
likely.c lib/ccan: update to init-1192-gdd04041 2011-07-25 12:03:40 +02:00
likely.h ccan: fix likely redefinition warnings with --enable-tdb2 2011-08-31 13:57:14 +09:30