view dbhelpers.h @ 1397:18c0b0e450ff

Fix configure options using AC_ARG_ENABLE Configure options to disable some features, which are checked using AC_ARG_ENABLE can be invoked with --enable-<option> as well. The current configure script always generates a #define for such options even though the --enable-<option> case should not generate a #define. Fix this by properly checking if the feature should be enabled, in which case no #define is being generated. Signed-off-by: Stefan Hauser <[email protected]>
author Stefan Hauser <stefan@shauser.net>
date Wed, 27 Jul 2016 19:38:56 +0200
parents 3017bc7d6238
children d68d61e7056a
line wrap: on
line source

#ifndef DROPBEAR_DBHELPERS_H_
#define DROPBEAR_DBHELPERS_H_

/* This header defines some things that are also used by libtomcrypt/math. 
   We avoid including normal include.h since that can result in conflicting 
   definitinos - only include config.h */
#include "config.h"

#ifdef __GNUC__
#define ATTRIB_PRINTF(fmt,args) __attribute__((format(printf, fmt, args))) 
#define ATTRIB_NORETURN __attribute__((noreturn))
#define ATTRIB_SENTINEL __attribute__((sentinel))
#else
#define ATTRIB_PRINTF(fmt,args)
#define ATTRIB_NORETURN
#define ATTRIB_SENTINEL
#endif

void m_burn(void* data, unsigned int len);

#endif /* DROPBEAR_DBHELPERS_H_ */