diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2015-04-02 13:41:02 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2015-04-02 13:41:02 +0200 |
commit | dbe7df7571525b2d1ab78c08d2e705c6974ff8b5 (patch) | |
tree | 2df560352ec610cf301eeba4deda74f3c1368174 /include/libssh/priv.h | |
parent | a3357b892060d6d534bc8d742d42dc78e58e07ce (diff) | |
download | libssh-dbe7df7571525b2d1ab78c08d2e705c6974ff8b5.tar.gz libssh-dbe7df7571525b2d1ab78c08d2e705c6974ff8b5.tar.xz libssh-dbe7df7571525b2d1ab78c08d2e705c6974ff8b5.zip |
cmake: Detect __func__ and __FUNCTION__ during configure step
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include/libssh/priv.h')
-rw-r--r-- | include/libssh/priv.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/libssh/priv.h b/include/libssh/priv.h index 697b45bf..e8b50ba0 100644 --- a/include/libssh/priv.h +++ b/include/libssh/priv.h @@ -139,8 +139,12 @@ int gettimeofday(struct timeval *__p, void *__t); #define MAX_BUF_SIZE 4096 #endif -#ifndef __func__ -#define __func__ __FUNCTION__ +#ifndef HAVE_COMPILER__FUNC__ +# ifdef HAVE_COMPILER__FUNCTION__ +# define __func__ __FUNCTION__ +# else +# error "Your system must provide a __func__ macro" +# endif #endif #if defined(HAVE_GCC_THREAD_LOCAL_STORAGE) |