Commit 5dafa494 authored by Daniel Verkamp's avatar Daniel Verkamp
Browse files

nvme.h: include stdbool.h and stdint.h



Explicitly include system headers for types that are used in public
headers.

These were being pulled in by example code, so SPDK itself would build,
but other apps that did not include stdbool.h would fail to compile when
including spdk/nvme.h.

Also include nvme.h first in nvme_internal.h so this case gets tested
during normal compilation.

Change-Id: I8ed0fc4e0dcf71551738c461b4b825cc2ee1d233
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent 093d5479
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -38,7 +38,9 @@
extern "C" {
#endif

#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include "spdk/pci.h"
#include "nvme_spec.h"

+2 −2
Original line number Diff line number Diff line
@@ -34,6 +34,8 @@
#ifndef __NVME_INTERNAL_H__
#define __NVME_INTERNAL_H__

#include "spdk/nvme.h"

#include <errno.h>
#include <stddef.h>
#include <stdint.h>
@@ -47,8 +49,6 @@

#include <sys/user.h>

#include "spdk/nvme.h"

#include "spdk/queue.h"
#include "spdk/barrier.h"
#include "spdk/mmio.h"