From: Eric Petit Date: Wed, 8 Mar 2006 23:52:35 +0000 (+0000) Subject: Force lldiv emulation on BeOS X-Git-Tag: 0.9.0-test0~11980 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=abed251569693eca81b6d91ae1149211c8507734;p=vlc Force lldiv emulation on BeOS --- diff --git a/include/vlc_common.h b/include/vlc_common.h index 381bd24d45..d54d50e5f5 100644 --- a/include/vlc_common.h +++ b/include/vlc_common.h @@ -873,7 +873,7 @@ static inline void _SetQWBE( uint8_t *p, uint64_t i_qw ) # define vlc_strtoll NULL #endif -#ifndef HAVE_LLDIV +#if !defined(HAVE_LLDIV) || defined(SYS_BEOS) typedef struct { long long quot; /* Quotient. */ long long rem; /* Remainder. */ diff --git a/src/extras/libc.c b/src/extras/libc.c index 2b2982dcc9..3ba92fc6bf 100644 --- a/src/extras/libc.c +++ b/src/extras/libc.c @@ -346,7 +346,7 @@ int64_t vlc_atoll( const char *nptr ) /***************************************************************************** * lldiv: returns quotient and remainder *****************************************************************************/ -#if !defined( HAVE_LLDIV ) +#if !defined(HAVE_LLDIV) || defined(SYS_BEOS) lldiv_t vlc_lldiv( long long numer, long long denom ) { lldiv_t d;