Skip to content

Commit

Permalink
compressdev: add missing C++ guards
Browse files Browse the repository at this point in the history
[ upstream commit ef64c2f311f66bf8fe563bf7777e5dba72fc57e6 ]

Some public header files were missing 'extern "C"' C++ guards,
and couldn't be used by C++ applications. Add the missing guards.

Fixes: ed7dd94 ("compressdev: add basic device management")

Signed-off-by: Brian Dooley <brian.dooley@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
  • Loading branch information
bdoole1 authored and cpaelzer committed Mar 9, 2022
1 parent 68be7b2 commit 49abae5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/librte_compressdev/rte_compressdev_internal.h
Expand Up @@ -5,6 +5,10 @@
#ifndef _RTE_COMPRESSDEV_INTERNAL_H_
#define _RTE_COMPRESSDEV_INTERNAL_H_

#ifdef __cplusplus
extern "C" {
#endif

/* rte_compressdev_internal.h
* This file holds Compressdev private data structures.
*/
Expand Down Expand Up @@ -111,4 +115,9 @@ struct rte_compressdev_data {
void *dev_private;
/**< PMD-specific private data */
} __rte_cache_aligned;

#ifdef __cplusplus
}
#endif

#endif

0 comments on commit 49abae5

Please sign in to comment.