patches/supertuxkart-01-sunstudio.diff
author jurikm
Sun, 09 May 2010 15:57:20 +0000
changeset 2604 bb7d01299650
permissions -rw-r--r--
SFEsupertuxkart.spec: initial SFE import
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2604
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
     1
--- supertuxkart-0.6.2a/configure.ac	Sun May  9 14:47:32 2010
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
     2
+++ supertuxkart-0.6.2a-patch/configure.ac	Sun May  9 14:47:42 2010
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
     3
@@ -13,14 +13,6 @@
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
     4
 AM_INIT_AUTOMAKE([foreign tar-ustar])
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
     5
 
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
     6
 
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
     7
-dnl =====================================================
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
     8
-dnl Set the default CFLAGS/CXXFLAGS
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
     9
-dnl If these were not set, the AC_PROG_CC and AC_PROG_CXX
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    10
-dnl scripts set them to "-g -O2".
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    11
-dnl =====================================================
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    12
-CFLAGS="$CFLAGS -Wall -Wstrict-prototypes -Wmissing-prototypes"
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    13
-CXXFLAGS="$CXXFLAGS -Wall"
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    14
-
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    15
 dnl ===================
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    16
 dnl Check for compilers
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    17
 dnl ===================
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    18
--- supertuxkart-0.6.2a/src/bullet/src/LinearMath/btAlignedAllocator.h	Fri Oct 16 02:43:56 2009
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    19
+++ supertuxkart-0.6.2a-patch/src/bullet/src/LinearMath/btAlignedAllocator.h	Sun May  9 14:55:23 2010
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    20
@@ -16,6 +16,8 @@
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    21
 #ifndef BT_ALIGNED_ALLOCATOR
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    22
 #define BT_ALIGNED_ALLOCATOR
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    23
 
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    24
+#include <stdio.h>
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    25
+
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    26
 ///we probably replace this with our own aligned memory allocator
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    27
 ///so we replace _aligned_malloc and _aligned_free with our own
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    28
 ///that is better portable and more predictable
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    29
--- supertuxkart-0.6.2a/src/bullet/src/LinearMath/btAlignedAllocator.cpp	Fri Oct 16 02:43:56 2009
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    30
+++ supertuxkart-0.6.2a-patch/src/bullet/src/LinearMath/btAlignedAllocator.cpp	Sun May  9 14:56:10 2010
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    31
@@ -13,6 +13,8 @@
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    32
 3. This notice may not be removed or altered from any source distribution.
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    33
 */
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    34
 
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    35
+#include <stdlib.h>
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    36
+
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    37
 #include "btAlignedAllocator.h"
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    38
 
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    39
 int gNumAlignedAllocs = 0;
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    40
--- supertuxkart-0.6.2a/src/utils/translation.cpp	Fri Oct 16 02:43:56 2009
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    41
+++ supertuxkart-0.6.2a-patch/src/utils/translation.cpp	Sun May  9 15:00:42 2010
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    42
@@ -21,6 +21,8 @@
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    43
 #include "translation.hpp"
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    44
 #include "file_manager.hpp"
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    45
 
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    46
+#include <locale.h>
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    47
+
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    48
 Translations* translations=NULL;
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    49
 
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    50
 Translations::Translations() { 
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    51
--- supertuxkart-0.6.2a/src/gui/widget_manager.hpp	Fri Oct 16 02:43:52 2009
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    52
+++ supertuxkart-0.6.2a-patch/src/gui/widget_manager.hpp	Sun May  9 15:27:46 2010
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    53
@@ -367,8 +367,8 @@
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    54
     int handleDown();
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    55
 
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    56
 	/* Scrolling modification. */
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    57
-	void increaseScrollSpeed(bool = false);
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    58
-	void decreaseScrollSpeed(bool = false);
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    59
+	void increaseScrollSpeed(const bool = false);
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    60
+	void decreaseScrollSpeed(const bool = false);
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    61
 	void setPosition(const int token, 
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    62
 		             WidgetDirection hori, float percentage_x, 
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    63
 		             WidgetDirection verti, float percentage_y);
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    64
--- supertuxkart-0.6.2a/src/gui/widget.cpp	Fri Oct 16 02:43:52 2009
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    65
+++ supertuxkart-0.6.2a-patch/src/gui/widget.cpp	Sun May  9 15:37:02 2010
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    66
@@ -325,7 +325,7 @@
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    67
 }
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    68
 
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    69
 //-----------------------------------------------------------------------------
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    70
-void Widget::setTexture( const std::string& FILENAME, bool is_full_path )
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    71
+void Widget::setTexture( const std::string& FILENAME, const bool is_full_path )
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    72
 {
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    73
     Material *m = material_manager->getMaterial( FILENAME, is_full_path );
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    74
     m_texture = m->getState()->getTextureHandle();
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    75
--- supertuxkart-0.6.2a/src/highscores.cpp	Fri Oct 16 02:44:09 2009
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    76
+++ supertuxkart-0.6.2a-patch/src/highscores.cpp	Sun May  9 15:40:40 2010
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    77
@@ -107,7 +107,7 @@
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    78
 
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    79
 // -----------------------------------------------------------------------------
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    80
 int HighscoreEntry::matches(HighscoreType highscore_type,
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    81
-                            int num_karts, RaceManager::Difficulty difficulty,
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    82
+                            int num_karts, const RaceManager::Difficulty difficulty,
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    83
                             const std::string track, const int number_of_laps)
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    84
 {
bb7d01299650 SFEsupertuxkart.spec: initial SFE import
jurikm
parents:
diff changeset
    85
     return (m_highscore_type  == highscore_type   &&