Skip to content

Commit

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

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

Fixes: dc276b5 ("acl: new library")

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 c7b95a4 commit 68be7b2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/librte_acl/rte_acl_osdep.h
Expand Up @@ -5,6 +5,10 @@
#ifndef _RTE_ACL_OSDEP_H_
#define _RTE_ACL_OSDEP_H_

#ifdef __cplusplus
extern "C" {
#endif

/**
* @file
*
Expand Down Expand Up @@ -45,4 +49,8 @@
#include <rte_cpuflags.h>
#include <rte_debug.h>

#ifdef __cplusplus
}
#endif

#endif /* _RTE_ACL_OSDEP_H_ */

0 comments on commit 68be7b2

Please sign in to comment.