hack for smartos

This commit is contained in:
Michael Jerris 2014-02-24 16:19:51 -05:00
parent 68692d9bca
commit 6df9fc597f
1 changed files with 4 additions and 0 deletions

View File

@ -253,8 +253,12 @@ typedef intptr_t switch_ssize_t;
#endif
#ifndef SWITCH_INT64_T_FMT
#ifdef __sun
#define SWITCH_INT64_T_FMT "ld"
#else
#define SWITCH_INT64_T_FMT (sizeof (long) == 8 ? "ld" : "lld")
#endif
#endif
#ifndef SWITCH_UINT64_T_FMT
#define SWITCH_UINT64_T_FMT (sizeof (long) == 8 ? "lu" : "llu")