diff options
Diffstat (limited to 'include/openvswitch/util.h')
-rw-r--r-- | include/openvswitch/util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/openvswitch/util.h b/include/openvswitch/util.h index 9189e6480..228b185c3 100644 --- a/include/openvswitch/util.h +++ b/include/openvswitch/util.h @@ -85,6 +85,8 @@ OVS_NO_RETURN void ovs_assert_failure(const char *, const char *, const char *); * assigned to OBJECT. */ #ifdef __GNUC__ #define OVS_TYPEOF(OBJECT) typeof(OBJECT) +#elif defined (__cplusplus) +#define OVS_TYPEOF(OBJECT) decltype(OBJECT) #else #define OVS_TYPEOF(OBJECT) void * #endif |