Comment out config_get_uint64 when compiling for C89

This commit is contained in:
twinaphex 2015-11-19 13:52:40 +01:00
parent 1cd1ecfc5c
commit 1e006e3edc
2 changed files with 4 additions and 0 deletions

View File

@ -617,6 +617,7 @@ bool config_get_int(config_file_t *conf, const char *key, int *in)
return entry != NULL && errno == 0;
}
#ifndef C89_BUILD
bool config_get_uint64(config_file_t *conf, const char *key, uint64_t *in)
{
const struct config_entry_list *entry = config_get_entry(conf, key, NULL);
@ -632,6 +633,7 @@ bool config_get_uint64(config_file_t *conf, const char *key, uint64_t *in)
return entry != NULL && errno == 0;
}
#endif
bool config_get_uint(config_file_t *conf, const char *key, unsigned *in)
{

View File

@ -89,8 +89,10 @@ bool config_get_int(config_file_t *conf, const char *entry, int *in);
/* Extracts an uint from config file. */
bool config_get_uint(config_file_t *conf, const char *entry, unsigned *in);
#ifndef C89_BUILD
/* Extracts an uint64 from config file. */
bool config_get_uint64(config_file_t *conf, const char *entry, uint64_t *in);
#endif
/* Extracts an unsigned int from config file treating input as hex. */
bool config_get_hex(config_file_t *conf, const char *entry, unsigned *in);