diff options
Diffstat (limited to 'bfd/bfd-in.h')
-rw-r--r-- | bfd/bfd-in.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h index df5568e..ea2d2cb 100644 --- a/bfd/bfd-in.h +++ b/bfd/bfd-in.h @@ -159,3 +159,11 @@ startswith (const char *str, const char *prefix) return strncmp (str, prefix, strlen (prefix)) == 0; } +/* Return true if plugin is enabled. */ + +static inline bool +bfd_plugin_enabled (void) +{ + return BFD_SUPPORTS_PLUGINS != 0; +} + |