diff ALmixer.c @ 36:b65ad8b6ccf3

Moved two variable declarations to the top to make old C89/90 compilers happy.
author Eric Wing <ewing@anscamobile.com>
date Thu, 07 Apr 2011 19:19:07 -0700
parents 76a881923cfc
children b346b6608eab
line wrap: on
line diff
--- a/ALmixer.c	Wed Apr 06 14:54:09 2011 -0700
+++ b/ALmixer.c	Thu Apr 07 19:19:07 2011 -0700
@@ -7721,12 +7721,12 @@
 
 ALint ALmixer_AllocateChannels(ALint numchans)
 {
+	ALint retval;
 	if(AL_FALSE == ALmixer_Initialized)
 	{
 		return -1;
 	}
 
-	ALint retval;
 #ifdef ENABLE_ALMIXER_THREADS
 	SDL_LockMutex(s_simpleLock);
 #endif
@@ -7740,12 +7740,12 @@
 	
 ALint ALmixer_ReserveChannels(ALint num)
 {
+	ALint retval;
 	if(AL_FALSE == ALmixer_Initialized)
 	{
 		return -1;
 	}
 	
-	ALint retval;
 #ifdef ENABLE_ALMIXER_THREADS
 	SDL_LockMutex(s_simpleLock);
 #endif