Skip to content
Snippets Groups Projects
Unverified Commit 5cf934d7 authored by Marcin Ślusarz's avatar Marcin Ślusarz Committed by GitHub
Browse files

Merge pull request #3560 from marcinslusarz/extern

common: include headers outside of extern "C" block
parents 8b7fe498 fef5f381
No related branches found
No related tags found
No related merge requests found
/* /*
* Copyright 2014-2018, Intel Corporation * Copyright 2014-2019, Intel Corporation
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
...@@ -43,6 +43,8 @@ ...@@ -43,6 +43,8 @@
#ifndef LIBPMEM_H #ifndef LIBPMEM_H
#define LIBPMEM_H 1 #define LIBPMEM_H 1
#include <sys/types.h>
#ifdef _WIN32 #ifdef _WIN32
#include <pmemcompat.h> #include <pmemcompat.h>
...@@ -62,8 +64,6 @@ ...@@ -62,8 +64,6 @@
extern "C" { extern "C" {
#endif #endif
#include <sys/types.h>
/* /*
* This limit is set arbitrary to incorporate a pool header and required * This limit is set arbitrary to incorporate a pool header and required
* alignment plus supply. * alignment plus supply.
......
/* /*
* Copyright 2014-2018, Intel Corporation * Copyright 2014-2019, Intel Corporation
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
...@@ -43,6 +43,8 @@ ...@@ -43,6 +43,8 @@
#ifndef LIBPMEMBLK_H #ifndef LIBPMEMBLK_H
#define LIBPMEMBLK_H 1 #define LIBPMEMBLK_H 1
#include <sys/types.h>
#ifdef _WIN32 #ifdef _WIN32
#include <pmemcompat.h> #include <pmemcompat.h>
...@@ -72,8 +74,6 @@ ...@@ -72,8 +74,6 @@
extern "C" { extern "C" {
#endif #endif
#include <sys/types.h>
/* /*
* opaque type, internal to libpmemblk * opaque type, internal to libpmemblk
*/ */
......
/* /*
* Copyright 2014-2018, Intel Corporation * Copyright 2014-2019, Intel Corporation
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
...@@ -43,6 +43,8 @@ ...@@ -43,6 +43,8 @@
#ifndef LIBPMEMLOG_H #ifndef LIBPMEMLOG_H
#define LIBPMEMLOG_H 1 #define LIBPMEMLOG_H 1
#include <sys/types.h>
#ifdef _WIN32 #ifdef _WIN32
#include <pmemcompat.h> #include <pmemcompat.h>
...@@ -74,8 +76,6 @@ ...@@ -74,8 +76,6 @@
extern "C" { extern "C" {
#endif #endif
#include <sys/types.h>
/* /*
* opaque type, internal to libpmemlog * opaque type, internal to libpmemlog
*/ */
......
/* /*
* Copyright 2016-2018, Intel Corporation * Copyright 2016-2019, Intel Corporation
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
...@@ -39,6 +39,10 @@ ...@@ -39,6 +39,10 @@
#ifndef LIBPMEMPOOL_H #ifndef LIBPMEMPOOL_H
#define LIBPMEMPOOL_H 1 #define LIBPMEMPOOL_H 1
#include <stdint.h>
#include <stddef.h>
#include <limits.h>
#ifdef _WIN32 #ifdef _WIN32
#include <pmemcompat.h> #include <pmemcompat.h>
...@@ -78,11 +82,6 @@ ...@@ -78,11 +82,6 @@
extern "C" { extern "C" {
#endif #endif
#include <stdint.h>
#include <stddef.h>
#include <limits.h>
/* PMEMPOOL CHECK */ /* PMEMPOOL CHECK */
/* /*
......
/* /*
* Copyright 2016-2018, Intel Corporation * Copyright 2016-2019, Intel Corporation
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
...@@ -42,13 +42,13 @@ ...@@ -42,13 +42,13 @@
#ifndef LIBRPMEM_H #ifndef LIBRPMEM_H
#define LIBRPMEM_H 1 #define LIBRPMEM_H 1
#include <sys/types.h>
#include <stdint.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
#include <sys/types.h>
#include <stdint.h>
typedef struct rpmem_pool RPMEMpool; typedef struct rpmem_pool RPMEMpool;
#define RPMEM_POOL_HDR_SIG_LEN 8 #define RPMEM_POOL_HDR_SIG_LEN 8
......
/* /*
* Copyright 2014-2017, Intel Corporation * Copyright 2014-2019, Intel Corporation
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
...@@ -41,6 +41,9 @@ ...@@ -41,6 +41,9 @@
#ifndef LIBVMEM_H #ifndef LIBVMEM_H
#define LIBVMEM_H 1 #define LIBVMEM_H 1
#include <sys/types.h>
#include <stddef.h>
#ifdef _WIN32 #ifdef _WIN32
#ifndef PMDK_UTF8_API #ifndef PMDK_UTF8_API
#define vmem_create vmem_createW #define vmem_create vmem_createW
...@@ -57,9 +60,6 @@ ...@@ -57,9 +60,6 @@
extern "C" { extern "C" {
#endif #endif
#include <sys/types.h>
#include <stddef.h>
typedef struct vmem VMEM; /* opaque type internal to libvmem */ typedef struct vmem VMEM; /* opaque type internal to libvmem */
/* /*
......
/* /*
* Copyright 2014-2017, Intel Corporation * Copyright 2014-2019, Intel Corporation
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
...@@ -41,6 +41,8 @@ ...@@ -41,6 +41,8 @@
#ifndef LIBVMMALLOC_H #ifndef LIBVMMALLOC_H
#define LIBVMMALLOC_H 1 #define LIBVMMALLOC_H 1
#include <sys/types.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
...@@ -48,8 +50,6 @@ extern "C" { ...@@ -48,8 +50,6 @@ extern "C" {
#define VMMALLOC_MAJOR_VERSION 1 #define VMMALLOC_MAJOR_VERSION 1
#define VMMALLOC_MINOR_VERSION 1 #define VMMALLOC_MINOR_VERSION 1
#include <sys/types.h>
#define VMMALLOC_MIN_POOL ((size_t)(1024 * 1024 * 14)) /* min pool size: 14MB */ #define VMMALLOC_MIN_POOL ((size_t)(1024 * 1024 * 14)) /* min pool size: 14MB */
/* /*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment