mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	gcc 2.95 compatibility, take 2
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@208 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
		
							parent
							
								
									19294e4b38
								
							
						
					
					
						commit
						078f2aa860
					
				
					 7 changed files with 11 additions and 9 deletions
				
			
		| 
						 | 
				
			
			@ -104,12 +104,13 @@ AC_SUBST(GLIB12_LIBS)
 | 
			
		|||
AC_SUBST(HAVE_GLIB12)
 | 
			
		||||
AM_CONDITIONAL([HAVE_GLIB12], [test "x$HAVE_GLIB12" = x1])
 | 
			
		||||
 | 
			
		||||
# If using GCC specifiy some additional parameters
 | 
			
		||||
# If using GCC specify some additional parameters
 | 
			
		||||
if test "x$GCC" = "xyes" ; then
 | 
			
		||||
   CFLAGS="$CFLAGS -pipe -W -Wall -pedantic"
 | 
			
		||||
 | 
			
		||||
   AC_LANG_CONFTEST([int main()])
 | 
			
		||||
   $CC -std=c99 -Wno-unused-parameter -E conftest.c -o - > /dev/null 2>&1 && CFLAGS="$CFLAGS -std=c99 -Wno-unused-parameter"
 | 
			
		||||
   AC_LANG_CONFTEST([int main() {}])
 | 
			
		||||
   $CC -c conftest.c -std=c99 -Wno-unused-parameter $CFLAGS > /dev/null 2> /dev/null && CFLAGS="$CFLAGS -std=c99 -Wno-unused-parameter"
 | 
			
		||||
   rm -f conftest.o
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
# LYNX documentation generation
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -81,4 +81,5 @@ int main() {
 | 
			
		|||
    
 | 
			
		||||
    pa_mainloop_free(m);
 | 
			
		||||
 | 
			
		||||
    return 0;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -6,7 +6,7 @@
 | 
			
		|||
enum pa_log_target {
 | 
			
		||||
    PA_LOG_SYSLOG,
 | 
			
		||||
    PA_LOG_STDERR,
 | 
			
		||||
    PA_LOG_USER,
 | 
			
		||||
    PA_LOG_USER
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
void pa_log_set_ident(const char *p);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -229,7 +229,7 @@ struct pa_operation* pa_context_unload_module(struct pa_context *c, uint32_t ind
 | 
			
		|||
/** Type of an autoload entry. \since 0.5 */
 | 
			
		||||
enum pa_autoload_type {
 | 
			
		||||
    PA_AUTOLOAD_SINK = 0,
 | 
			
		||||
    PA_AUTOLOAD_SOURCE = 1,
 | 
			
		||||
    PA_AUTOLOAD_SOURCE = 1
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
/** Stores information about autoload entries. \since 0.5 */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -36,7 +36,7 @@ struct pa_source;
 | 
			
		|||
 | 
			
		||||
enum pa_source_state {
 | 
			
		||||
    PA_SOURCE_RUNNING,
 | 
			
		||||
    PA_SOURCE_DISCONNECTED,
 | 
			
		||||
    PA_SOURCE_DISCONNECTED
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
struct pa_source {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -46,7 +46,7 @@ enum tags {
 | 
			
		|||
    TAG_BOOLEAN_TRUE = '1',
 | 
			
		||||
    TAG_BOOLEAN_FALSE = '0',
 | 
			
		||||
    TAG_TIMEVAL = 'T',
 | 
			
		||||
    TAG_USEC = 'U',  /* 64bit unsigned */
 | 
			
		||||
    TAG_USEC = 'U'  /* 64bit unsigned */
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
struct pa_tagstruct {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -385,7 +385,7 @@ char *pa_split(const char *c, const char *delimiter, const char**state) {
 | 
			
		|||
    *state = current+l;
 | 
			
		||||
 | 
			
		||||
    if (**state)
 | 
			
		||||
        *state++;
 | 
			
		||||
        (*state)++;
 | 
			
		||||
 | 
			
		||||
    return pa_xstrndup(current, l);
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue