HaikuPorts
  • Login
  • Preferences
  • Help/Guide
  • Wiki
  • Timeline
  • Roadmap
  • View Tickets
  • Search
  • Port Log
  • Blog

Context Navigation

  • Back to Ticket #366

Ticket #366: openal-0.2005080600.patch

File openal-0.2005080600.patch, 4.3 KB (added by michaelvoliveira, 5 years ago)

patch to allow builds with gcc4. Correct lib name

  • beos/include/AL/al.h

    diff -Naur openal-0.2005080600/beos/include/AL/al.h openal-0.2005080600-haiku/beos/include/AL/al.h
    old new  
    4343 */ 
    4444 
    4545ALAPI ALvoid    ALAPIENTRY alInit(ALint *argc,ALubyte **argv); 
    46 ALAPI ALvoid    ALAPIENTRY alExit(ALvoid); 
     46ALAPI ALvoid    ALAPIENTRY alExit(void); 
    4747 
    4848/** State management. */ 
    4949ALAPI void              ALAPIENTRY alEnable( ALenum capability ); 
  • beos/samples/Makefile

    diff -Naur openal-0.2005080600/beos/samples/Makefile openal-0.2005080600-haiku/beos/samples/Makefile
    old new  
    44 
    55CC = gcc 
    66CFLAGS = -I../include -O2 -Wall 
    7 LIBS = -L$(HOME)/config/lib -lAL -lGL -lglut 
     7LIBS = -L$(HOME)/config/lib -lopenal -lGL -lglut 
    88 
    99TARGETS = panning xldemo 
    1010 
  • beos/src/Context.h

    diff -Naur openal-0.2005080600/beos/src/Context.h openal-0.2005080600-haiku/beos/src/Context.h
    old new  
    2525#include "Types.h" 
    2626 
    2727 
    28 ALvoid alimInit(ALvoid); 
     28ALvoid alimInit(void); 
    2929 
    30 ALvoid alimExit(ALvoid); 
     30ALvoid alimExit(void); 
    3131 
    32 ALcontext *alimGetCurrent(ALvoid); 
     32ALcontext *alimGetCurrent(void); 
    3333 
    3434ALvoid alimMakeCurrent(ALcontext *context); 
    3535 
  • beos/src/Main.c

    diff -Naur openal-0.2005080600/beos/src/Main.c openal-0.2005080600-haiku/beos/src/Main.c
    old new  
    3737        alimInit(); 
    3838} 
    3939 
    40 ALAPI ALvoid ALAPIENTRY alExit(ALvoid) 
     40ALAPI ALvoid ALAPIENTRY alExit(void) 
    4141{ 
    4242        alimExit(); 
    4343} 
  • beos/src/Makefile

    diff -Naur openal-0.2005080600/beos/src/Makefile openal-0.2005080600-haiku/beos/src/Makefile
    old new  
    2121# Boston, MA  02111-1307, USA. 
    2222# 
    2323 
    24 NAME = libAL.so 
     24NAME = libopenal.so 
    2525TYPE = SHARED 
    2626 
    2727WARNINGS = ALL 
    … …  
    3838 
    3939include /boot/develop/etc/makefile-engine 
    4040 
    41 install: $(TARGET) 
    42         cp $(TARGET) $(HOME)/config/lib/$(NAME) 
  • beos/src/Player.cpp

    diff -Naur openal-0.2005080600/beos/src/Player.cpp openal-0.2005080600-haiku/beos/src/Player.cpp
    old new  
    4040        } 
    4141} 
    4242 
    43 ALvoid alimInitApplication(ALvoid) 
     43ALvoid alimInitApplication(void) 
    4444{ 
    4545        if (be_app == NULL) 
    4646                be_app = new BApplication("application/x-vnd.openal.player"); 
    4747} 
    4848 
    49 ALvoid alimExitApplication(ALvoid) 
     49ALvoid alimExitApplication(void) 
    5050{ 
    5151} 
    5252 
  • beos/src/Player.h

    diff -Naur openal-0.2005080600/beos/src/Player.h openal-0.2005080600-haiku/beos/src/Player.h
    old new  
    2424 
    2525#include "Types.h" 
    2626 
    27 ALvoid alimInitApplication(ALvoid); 
     27ALvoid alimInitApplication(void); 
    2828 
    29 ALvoid alimExitApplication(ALvoid); 
     29ALvoid alimExitApplication(void); 
    3030 
    3131ALplayer *alimCreatePlayer(ALuint frequency, ALenum format, ALsizei size); 
    3232 
  • beos/src/State.h

    diff -Naur openal-0.2005080600/beos/src/State.h openal-0.2005080600-haiku/beos/src/State.h
    old new  
    2424 
    2525#include "Types.h" 
    2626 
    27 ALstate *alimCreateState(ALvoid); 
     27ALstate *alimCreateState(void); 
    2828 
    2929ALvoid alimDeleteState(ALstate *state); 
    3030 
  • beos/src/Thread.h

    diff -Naur openal-0.2005080600/beos/src/Thread.h openal-0.2005080600-haiku/beos/src/Thread.h
    old new  
    2626 
    2727typedef struct ALmutex ALmutex; 
    2828 
    29 ALuint alimCreateTLS(ALvoid); 
     29ALuint alimCreateTLS(void); 
    3030 
    3131ALvoid alimDeleteTLS(ALuint handle); 
    3232 
    … …  
    3434 
    3535ALvoid *alimGetTLS(ALuint handle); 
    3636 
    37 ALmutex *alimCreateMutex(ALvoid); 
     37ALmutex *alimCreateMutex(void); 
    3838 
    3939ALvoid alimDeleteMutex(ALmutex *mutex); 
    4040 

Download in other formats:

  • Original Format

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/