Commit 1dcd3ad5 authored by Rusty Russell's avatar Rusty Russell

compiler, talloc, tap, tdb2: use #if instead of #ifdef.

parent 9450cb3c
......@@ -6,7 +6,7 @@ int main(int argc, char *argv[])
plan_tests(2);
ok1(!IS_COMPILE_CONSTANT(argc));
#ifdef HAVE_BUILTIN_CONSTANT_P
#if HAVE_BUILTIN_CONSTANT_P
ok1(IS_COMPILE_CONSTANT(7));
#else
pass("If !HAVE_BUILTIN_CONSTANT_P, IS_COMPILE_CONSTANT always false");
......
......@@ -276,7 +276,7 @@ int talloc_free(const void *ptr);
*/
#define talloc_size(ctx, size) talloc_named_const(ctx, size, __location__)
#ifdef HAVE_TYPEOF
#if HAVE_TYPEOF
/**
* talloc_steal - change/set the parent context of a talloc pointer
* @ctx: the new parent
......
......@@ -49,7 +49,7 @@ static int test_pid;
/* Encapsulate the pthread code in a conditional. In the absence of
libpthread the code does nothing */
#ifdef HAVE_LIBPTHREAD
#if HAVE_LIBPTHREAD
#include <pthread.h>
static pthread_mutex_t M = PTHREAD_MUTEX_INITIALIZER;
# define LOCK pthread_mutex_lock(&M)
......
......@@ -37,7 +37,7 @@
#include <ccan/tdb2/tdb2.h>
#include <ccan/likely/likely.h>
#include <ccan/compiler/compiler.h>
#ifdef HAVE_BYTESWAP_H
#if HAVE_BYTESWAP_H
#include <byteswap.h>
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment