openflow build environment setup
This commit is contained in:
25
openflow/include/click/cxxprotect.h
Normal file
25
openflow/include/click/cxxprotect.h
Normal file
@ -0,0 +1,25 @@
|
||||
#ifdef __cplusplus
|
||||
# define new linux_new
|
||||
# define this linux_this
|
||||
# define delete linux_delete
|
||||
# define class linux_class
|
||||
# define virtual linux_virtual
|
||||
# define typename linux_typename
|
||||
# define protected linux_protected
|
||||
# define public linux_public
|
||||
# define namespace linux_namespace
|
||||
# define false linux_false
|
||||
# define true linux_true
|
||||
#endif
|
||||
|
||||
#ifndef CLICK_CXX_PROTECT
|
||||
# ifdef __cplusplus
|
||||
# define CLICK_CXX_PROTECT extern "C" {
|
||||
# define CLICK_CXX_UNPROTECT }
|
||||
# else
|
||||
# define CLICK_CXX_PROTECT /* nothing */
|
||||
# define CLICK_CXX_UNPROTECT /* nothing */
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#define CLICK_CXX_PROTECTED 1
|
||||
Reference in New Issue
Block a user