X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=blobdiff_plain;f=lib%2Flibrte_eal%2Finclude%2Frte_compat.h;h=4cd8f68d68f15c252caf411b3cbb2ef3bf740ec2;hp=3eb33784b31d40a4f05fc14f9da2606106af0984;hb=fba5af82adc8aad741e206161800fcb94a133ab7;hpb=06d63eb5e454e922b4c5debbf104fbc7039c8d7f diff --git a/lib/librte_eal/include/rte_compat.h b/lib/librte_eal/include/rte_compat.h index 3eb33784b3..4cd8f68d68 100644 --- a/lib/librte_eal/include/rte_compat.h +++ b/lib/librte_eal/include/rte_compat.h @@ -19,4 +19,17 @@ __attribute__((section(".text.experimental"))) #endif +#ifndef ALLOW_INTERNAL_API + +#define __rte_internal \ +__attribute__((error("Symbol is not public ABI"), \ +section(".text.internal"))) + +#else + +#define __rte_internal \ +__attribute__((section(".text.internal"))) + +#endif + #endif /* _RTE_COMPAT_H_ */