summaryrefslogtreecommitdiffstats
path: root/dives
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2011-11-27 09:10:37 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2011-11-27 09:10:37 -0800
commitff0209a5b42ced7d8b9ef9c5d84cbc5a4d84a0ac (patch)
treeb7a8f6f57351a641e49f86dd2db795ee12ce20a9 /dives
parent9b9355c770f39af6e140432645ca9f4b134cd1f2 (diff)
downloadsubsurface-ff0209a5b42ced7d8b9ef9c5d84cbc5a4d84a0ac.tar.gz
fix mingw-win32 specific warnings in libdivecomputer.c
1) since %lld is not defined in the MSVC runtime, use the portable PRId64 macro from inttypes.h for 64bit integers notice in inttypes.h from mingw-win32: /* 7.8.1 Macros for format specifiers * * MS runtime does not yet understand C9x standard "ll" * length specifier. It appears to treat "ll" as "l". * The non-standard I64 length specifier causes warning in GCC, * but understood by MS runtime functions. */ 2) include unistd.h to disable warning: warning: implicit declaration of function 'usleep' Lubomir's code then caused a warning building natively under Linux, which I fixed as well. Signed-off-by: Dirk Hohndel <dirk@hohndel.org> Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'dives')
0 files changed, 0 insertions, 0 deletions