diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/xtables.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/xtables.h b/include/xtables.h index f81daad6..577b3c6a 100644 --- a/include/xtables.h +++ b/include/xtables.h @@ -226,13 +226,14 @@ void exit_error(enum exittype, const char *, ...)__attribute__((noreturn, format(printf,2,3))); extern const char *program_name, *program_version; -#define _init __attribute__((constructor)) my_init #ifdef NO_SHARED_LIBS -# ifdef _INIT -# undef _init -# define _init _INIT -# endif - extern void init_extensions(void); +# ifdef _INIT +# undef _init +# define _init _INIT +# endif + extern void init_extensions(void); +#else +# define _init __attribute__((constructor)) _INIT #endif #endif /* _XTABLES_H */ |