X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=string.h;h=187f1f404a52541c9a1e5070580bc9ca524c668e;hb=a0b87ba0529cc6ab075e1d7a11f8b4adc47948eb;hp=41afe8f40ad1ccf37ae4c5dae0234c3e77380470;hpb=8f1fcd9c5ea3aa0f78be83b2a912a1e8cf722b76;p=dss.git diff --git a/string.h b/string.h index 41afe8f..187f1f4 100644 --- a/string.h +++ b/string.h @@ -7,3 +7,13 @@ __printf_1_2 void make_err_msg(const char* fmt,...); __must_check __malloc char *get_homedir(void); int dss_atoi64(const char *str, int64_t *value); __must_check __malloc char *dss_logname(void); + +/** \cond LLONG_MAX and LLONG_LIN might not be defined. */ +#ifndef LLONG_MAX +#define LLONG_MAX (1 << (sizeof(long) - 1)) +#endif +#ifndef LLONG_MIN +#define LLONG_MIN (-LLONG_MAX - 1LL) +#endif +/** \endcond */ +