Changeset 125a27bb77892ec016fce319a63880f1544da784

Show
Ignore:
Timestamp:
01/02/06 15:39:05 (3 years ago)
Author:
Christophe Mutricy <xtophe@videolan.org>
git-committer:
Christophe Mutricy <xtophe@videolan.org> 1138804745 +0000
git-parent:

[7b93bebca5e874523e286558cb945cad41136a01]

git-author:
Christophe Mutricy <xtophe@videolan.org> 1138804745 +0000
Message:

Test for assert() in configure.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • configure.ac

    r3acd855 r125a27b  
    374374need_libc=false 
    375375 
    376 AC_CHECK_FUNCS(gettimeofday select strerror strtod strtol strtof strtoll strtoull strsep isatty vasprintf asprintf swab sigrelse getpwuid memalign posix_memalign if_nametoindex atoll getenv putenv setenv gmtime_r ctime_r localtime_r lrintf daemon scandir fork bsearch
     376AC_CHECK_FUNCS(gettimeofday select strerror strtod strtol strtof strtoll strtoull strsep isatty vasprintf asprintf swab sigrelse getpwuid memalign posix_memalign if_nametoindex atoll getenv putenv setenv gmtime_r ctime_r localtime_r lrintf daemon scandir fork bsearch assert
    377377 
    378378dnl Check for usual libc functions 
  • src/libvlc.c

    rc4fef7e r125a27b  
    27302730        } 
    27312731        vlc_mutex_unlock( &libvlc.from_locale_lock ); 
    2732  
     2732#ifdef HAVE_ASSERT 
    27332733        assert (inb == 0); 
    27342734        assert (*iptr == '\0'); 
    27352735        assert (*optr == '\0'); 
    27362736        assert (strlen( output ) == (size_t)(optr - output)); 
     2737#endif 
    27372738        return realloc( output, optr - output + 1 ); 
    27382739    } 
     
    27772778        vlc_mutex_unlock( &libvlc.to_locale_lock ); 
    27782779 
     2780#ifdef HAVE_ASSERT 
    27792781        assert (inb == 0); 
    27802782        assert (*iptr == '\0'); 
    27812783        assert (*optr == '\0'); 
    27822784        assert (strlen( output ) == (size_t)(optr - output)); 
    2783         return realloc( output, optr - output + 1 ); 
     2785#endif 
     2786    return realloc( output, optr - output + 1 ); 
    27842787    } 
    27852788    return (char *)utf8;