From 4dd0772911a2c92a43d4e4aecf305fba498be106 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sat, 13 Jul 2013 21:21:27 +0200 Subject: expr: use __attribute__((constructor)) to register expression Instead of manual array registration. Signed-off-by: Pablo Neira Ayuso --- src/internal.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/internal.h') diff --git a/src/internal.h b/src/internal.h index 803dcc4..773643b 100644 --- a/src/internal.h +++ b/src/internal.h @@ -78,4 +78,6 @@ struct nft_set_elem { #define div_round_up(n, d) (((n) + (d) - 1) / (d)) +#define __init __attribute__((constructor)) + #endif -- cgit v1.2.3