diff options
author | Martin Willi <martin@revosec.ch> | 2012-07-02 18:00:33 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2012-07-03 13:09:14 +0200 |
commit | 3e0fe9f13eadd6ace435dd9941fa0a998e9324d2 (patch) | |
tree | 8be08f9c1a95bd8860c43dd59ba3a77b5468f8b0 /src/libstrongswan/printf_hook.h | |
parent | 901dbc1077f6c9bd29369cad848bc79a29c1a65b (diff) | |
download | strongswan-3e0fe9f13eadd6ace435dd9941fa0a998e9324d2.tar.bz2 strongswan-3e0fe9f13eadd6ace435dd9941fa0a998e9324d2.tar.xz |
Default to register_printf_specifier() if no printf hooking #defined
This allows us to build (non-./configured) external tools against
libstrongswan without explicitly specifiying the most commonly used
printf hooking function.
Diffstat (limited to 'src/libstrongswan/printf_hook.h')
-rw-r--r-- | src/libstrongswan/printf_hook.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libstrongswan/printf_hook.h b/src/libstrongswan/printf_hook.h index 11fd66ce9..8e4a08302 100644 --- a/src/libstrongswan/printf_hook.h +++ b/src/libstrongswan/printf_hook.h @@ -27,6 +27,13 @@ typedef struct printf_hook_spec_t printf_hook_spec_t; typedef enum printf_hook_argtype_t printf_hook_argtype_t; #if !defined(USE_VSTR) && \ + !defined(HAVE_PRINTF_FUNCTION) && \ + !defined(HAVE_PRINTF_SPECIFIER) +/* assume newer glibc register_printf_specifier if none given */ +#define HAVE_PRINTF_SPECIFIER +#endif + +#if !defined(USE_VSTR) && \ (defined(HAVE_PRINTF_FUNCTION) || defined(HAVE_PRINTF_SPECIFIER)) #include <stdio.h> |