-include wallet headers if compiling wallet library

This commit is contained in:
Christian Grothoff 2015-06-02 12:52:05 +02:00
parent 68a8c36f06
commit 401745fc30
5 changed files with 28 additions and 14 deletions

View File

@ -20,7 +20,6 @@
*/ */
#ifndef TALER_UTIL_H #ifndef TALER_UTIL_H
#define TALER_UTIL_H #define TALER_UTIL_H
#include <gnunet/gnunet_util_taler_wallet_lib.h> #include <gnunet/gnunet_util_taler_wallet_lib.h>
#include "taler_amount_lib.h" #include "taler_amount_lib.h"
#include "taler_crypto_lib.h" #include "taler_crypto_lib.h"

View File

@ -165,7 +165,7 @@ postgres_create_tables (void *cls,
if (CONNECTION_OK != PQstatus (conn)) if (CONNECTION_OK != PQstatus (conn))
{ {
TALER_LOG_ERROR ("Database connection failed: %s\n", TALER_LOG_ERROR ("Database connection failed: %s\n",
PQerrorMessage (conn)); PQerrorMessage (conn));
GNUNET_break (0); GNUNET_break (0);
PQfinish (conn); PQfinish (conn);
return GNUNET_SYSERR; return GNUNET_SYSERR;

View File

@ -23,7 +23,13 @@
*/ */
#include "platform.h" #include "platform.h"
#include "taler_util.h" #include "taler_util.h"
#if HAVE_GNUNET_GNUNET_UTIL_TALER_WALLET_LIB_H
#include <gnunet/gnunet_util_taler_wallet_lib.h>
#endif
#if HAVE_GNUNET_GNUNET_UTIL_LIB_H
#include <gnunet/gnunet_util_lib.h> #include <gnunet/gnunet_util_lib.h>
#endif
#include <gcrypt.h> #include <gcrypt.h>

View File

@ -19,7 +19,12 @@
* @author Sree Harsha Totakura <sreeharsha@totakura.in> * @author Sree Harsha Totakura <sreeharsha@totakura.in>
*/ */
#include "platform.h" #include "platform.h"
#if HAVE_GNUNET_GNUNET_UTIL_TALER_WALLET_LIB_H
#include <gnunet/gnunet_util_taler_wallet_lib.h>
#endif
#if HAVE_GNUNET_GNUNET_UTIL_LIB_H
#include <gnunet/gnunet_util_lib.h> #include <gnunet/gnunet_util_lib.h>
#endif
#include "taler_util.h" #include "taler_util.h"
/** /**

View File

@ -24,8 +24,12 @@
#include "platform.h" #include "platform.h"
#include "taler_util.h" #include "taler_util.h"
#include <gnunet/gnunet_common.h> #if HAVE_GNUNET_GNUNET_UTIL_TALER_WALLET_LIB_H
#include <gnunet/gnunet_util_taler_wallet_lib.h>
#endif
#if HAVE_GNUNET_GNUNET_UTIL_LIB_H
#include <gnunet/gnunet_util_lib.h> #include <gnunet/gnunet_util_lib.h>
#endif
#include <gcrypt.h> #include <gcrypt.h>