From 79c475c9170519a05fa707f66478aaa8f715e0b0 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 25 Sep 2009 10:01:56 +0200 Subject: Fixed including of config.h. If there is some option to modify libc behaviour (like if there was some off_t usage to be modified by some flag to make that 64 bit) that needs to be done before the first libc header. one could still do -D there, though (unless cmake wants to do something automatically and puts that in config.h) --- include/libssh/priv.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/libssh/priv.h b/include/libssh/priv.h index cd43b72..0f57421 100644 --- a/include/libssh/priv.h +++ b/include/libssh/priv.h @@ -30,6 +30,8 @@ #ifndef _LIBSSH_PRIV_H #define _LIBSSH_PRIV_H +#include "config.h" + #ifdef _MSC_VER #define snprintf _snprintf /** Imitate define of inttypes.h */ @@ -43,9 +45,9 @@ #define PRIdS "zd" #endif -#include "config.h" #include "libssh/libssh.h" #include "libssh/callback.h" + /* some constants */ #define MAX_PACKET_LEN 262144 #define ERROR_BUFFERLEN 1024 -- cgit v1.2.3