Commit 45cab335 authored by Daniel Verkamp's avatar Daniel Verkamp Committed by Ben Walker
Browse files

include: move standard includes into spdk/stdinc.h



This is the first step toward isolating standard C and POSIX headers
into a single replaceable header file.

Change-Id: I527297f5e7260b01103018ad3429922962ee9add
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent 578c0d55
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -38,12 +38,12 @@
#ifndef SPDK_ASSERT_H
#define SPDK_ASSERT_H

#include "spdk/stdinc.h"

#ifdef __cplusplus
extern "C" {
#endif

#include <assert.h>

#ifdef static_assert
#define SPDK_STATIC_ASSERT(cond, msg) static_assert(cond, msg)
#else
+2 −0
Original line number Diff line number Diff line
@@ -38,6 +38,8 @@
#ifndef SPDK_BARRIER_H
#define SPDK_BARRIER_H

#include "spdk/stdinc.h"

#ifdef __cplusplus
extern "C" {
#endif
+1 −5
Original line number Diff line number Diff line
@@ -39,11 +39,7 @@
#ifndef SPDK_BDEV_H_
#define SPDK_BDEV_H_

#include <inttypes.h>
#include <stddef.h>  /* for offsetof */
#include <sys/uio.h> /* for struct iovec */
#include <stdbool.h>
#include <pthread.h>
#include "spdk/stdinc.h"

#include "spdk/event.h"
#include "spdk/queue.h"
+2 −4
Original line number Diff line number Diff line
@@ -38,14 +38,12 @@
#ifndef SPDK_BIT_ARRAY_H
#define SPDK_BIT_ARRAY_H

#include "spdk/stdinc.h"

#ifdef __cplusplus
extern "C" {
#endif

#include <errno.h>
#include <stdbool.h>
#include <stdint.h>

/**
 * Variable-length bit array.
 */
+1 −2
Original line number Diff line number Diff line
@@ -66,8 +66,7 @@
#ifndef SPDK_BLOB_H
#define SPDK_BLOB_H

#include <stddef.h>
#include <stdint.h>
#include "spdk/stdinc.h"

typedef uint64_t spdk_blob_id;
#define SPDK_BLOBID_INVALID	(uint64_t)-1
Loading