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: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Daniel Verkamp 2016-02-19 12:41:12 -07:00
parent 093d5479f9
commit 5dafa4940f
2 changed files with 4 additions and 2 deletions

View File

@ -38,7 +38,9 @@
extern "C" {
#endif
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include "spdk/pci.h"
#include "nvme_spec.h"

View File

@ -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"