From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Richardson Subject: [PATCH] ring: cleanup file-local macros at end-of-file Date: Tue, 3 Mar 2015 16:38:37 +0000 Message-ID: <1425400717-24322-1-git-send-email-bruce.richardson@intel.com> To: dev-VfR2kkLFssw@public.gmane.org Return-path: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" The ENQUEUE_PTRS and DEQUEUE_PTRS macros defined in rte_ring.h are not meant to be global and are not prefixed with the RTE_ prefix. Therefore undef the macros at end of file to avoid pollution of the global namespace, in case ends apps end up wanting to reuse those names. Signed-off-by: Bruce Richardson --- lib/librte_ring/rte_ring.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/librte_ring/rte_ring.h b/lib/librte_ring/rte_ring.h index bdf69b7..0d35648 100644 --- a/lib/librte_ring/rte_ring.h +++ b/lib/librte_ring/rte_ring.h @@ -1232,6 +1232,10 @@ rte_ring_dequeue_burst(struct rte_ring *r, void **obj_table, unsigned n) return rte_ring_mc_dequeue_burst(r, obj_table, n); } +/* undef un-prefixed macros which are local to this file */ +#undef ENQUEUE_PTRS +#undef DEQUEUE_PTRS + #ifdef __cplusplus } #endif -- 2.1.0