[haiku-commits] r43123 - haiku/trunk/src/tests/kits/game/file_game_sound_test

  • From: pulkomandy@xxxxxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 2 Nov 2011 20:10:52 +0100 (CET)

Author: pulkomandy
Date: 2011-11-02 20:10:51 +0100 (Wed, 02 Nov 2011)
New Revision: 43123
Changeset: https://dev.haiku-os.org/changeset/43123

Modified:
   haiku/trunk/src/tests/kits/game/file_game_sound_test/FileSoundWindow.cpp
   haiku/trunk/src/tests/kits/game/file_game_sound_test/FileSoundWindow.h
   haiku/trunk/src/tests/kits/game/file_game_sound_test/Jamfile
Log:
Fix build for this test.
Shows a problem with the media kit : building it with gcc4 and trying to run it 
on a gcc2 install results in failure for trying to load a gcc2 media add-on.

Same applies for push_game_sound_test.


Modified: 
haiku/trunk/src/tests/kits/game/file_game_sound_test/FileSoundWindow.cpp
===================================================================
--- haiku/trunk/src/tests/kits/game/file_game_sound_test/FileSoundWindow.cpp    
2011-11-02 19:09:48 UTC (rev 43122)
+++ haiku/trunk/src/tests/kits/game/file_game_sound_test/FileSoundWindow.cpp    
2011-11-02 19:10:51 UTC (rev 43123)
@@ -4,17 +4,22 @@
        @version 1.0
  */
 
+
 #include "FileSoundWindow.h"
+
+#include <Alert.h>
 #include <Application.h>
 #include <Box.h>
-#include <TextControl.h>
 #include <Button.h>
 #include <CheckBox.h>
-#include <Alert.h>
+#include <Entry.h>
 #include <Path.h>
+#include <TextControl.h>
+
 #include <stdio.h>
 #include <stdlib.h>
 
+
 FileSoundWindow::FileSoundWindow(BRect windowBounds)
                                        :BWindow(windowBounds,"BFileGameSound 
test",B_TITLED_WINDOW,B_NOT_ZOOMABLE|B_NOT_RESIZABLE)
 {
@@ -195,7 +200,7 @@
                        if (pausedValue != BFileGameSound::B_PAUSE_IN_PROGRESS)
                        {
                                status_t error;
-                               char *label;
+                               const char *label;
                                if (paused)
                                {
                                        paused = false;

Modified: haiku/trunk/src/tests/kits/game/file_game_sound_test/FileSoundWindow.h
===================================================================
--- haiku/trunk/src/tests/kits/game/file_game_sound_test/FileSoundWindow.h      
2011-11-02 19:09:48 UTC (rev 43122)
+++ haiku/trunk/src/tests/kits/game/file_game_sound_test/FileSoundWindow.h      
2011-11-02 19:10:51 UTC (rev 43123)
@@ -4,15 +4,22 @@
        @version 1.0
  */
 
+
 #ifndef FILE_SOUND_WINDOW
 #define FILE_SOUND_WINDOW
 
-#include <Window.h>
-#include <Rect.h>
-#include <Message.h>
+
+#include <Button.h>
+#include <CheckBox.h>
+#include <Entry.h>
 #include <FileGameSound.h>
-#include <Entry.h>
 #include <FilePanel.h>
+#include <Message.h>
+#include <Rect.h>
+#include <TextControl.h>
+#include <Window.h>
+
+
 //message constants
 #define BROWSE_MSG 1
 #define PLAY_MSG 2

Modified: haiku/trunk/src/tests/kits/game/file_game_sound_test/Jamfile
===================================================================
--- haiku/trunk/src/tests/kits/game/file_game_sound_test/Jamfile        
2011-11-02 19:09:48 UTC (rev 43122)
+++ haiku/trunk/src/tests/kits/game/file_game_sound_test/Jamfile        
2011-11-02 19:10:51 UTC (rev 43123)
@@ -2,6 +2,6 @@
 
 SimpleTest file_game_sound_test
        : FileSoundTest.cpp FileSoundWindow.cpp
-       : game tracker be root
+       : game tracker be root $(TARGET_LIBSTDC++)
 ;
 


Other related posts:

  • » [haiku-commits] r43123 - haiku/trunk/src/tests/kits/game/file_game_sound_test - pulkomandy