CLEANUP: include: make atomic.h part of the base API

Atomic ops are used about everywhere, let's make them part of the base
API by including atomic.h in api.h.
This commit is contained in:
Willy Tarreau 2020-06-11 07:58:05 +02:00
parent 8e3f5c6661
commit 6784c99463
6 changed files with 1 additions and 5 deletions

View File

@ -22,7 +22,6 @@
#ifndef _HAPROXY_ACTIVITY_H
#define _HAPROXY_ACTIVITY_H
#include <haproxy/atomic.h>
#include <haproxy/api.h>
#include <haproxy/time.h>
#include <haproxy/activity-t.h>

View File

@ -30,6 +30,7 @@
#ifndef _HAPROXY_BASE_H
#define _HAPROXY_BASE_H
#include <haproxy/atomic.h>
#include <haproxy/bug.h>
#include <haproxy/initcall.h>
#include <haproxy/api-t.h>

View File

@ -22,7 +22,6 @@
#ifndef _HAPROXY_FREQ_CTR_H
#define _HAPROXY_FREQ_CTR_H
#include <haproxy/atomic.h>
#include <haproxy/api.h>
#include <haproxy/freq_ctr-t.h>
#include <haproxy/intops.h>

View File

@ -23,7 +23,6 @@
#define _HAPROXY_PORT_RANGE_H
#include <stdlib.h>
#include <haproxy/atomic.h>
#include <haproxy/api.h>
#include <haproxy/port_range-t.h>

View File

@ -29,7 +29,6 @@
#include <sched.h>
#endif
#include <haproxy/atomic.h>
#include <haproxy/api.h>
#include <haproxy/thread-t.h>

View File

@ -28,7 +28,6 @@
#ifndef __HAPROXY_XREF_H__
#define __HAPROXY_XREF_H__
#include <haproxy/atomic.h>
#include <haproxy/xref-t.h>
/* xref is used to create relation between two elements.