gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash ./ChangeLog libbase/tu_types.h


From: Rob Savoye
Subject: [Gnash-commit] gnash ./ChangeLog libbase/tu_types.h
Date: Thu, 26 Jan 2006 17:08:04 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Branch:         
Changes by:     Rob Savoye <address@hidden>     06/01/26 17:08:03

Modified files:
        .              : ChangeLog 
        libbase        : tu_types.h 

Log message:
        * libbase/tu_types.h: Use SDL typedefs always.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/gnash/ChangeLog.diff?tr1=1.42&tr2=1.43&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/gnash/gnash/libbase/tu_types.h.diff?tr1=1.1&tr2=1.2&r1=text&r2=text

Patches:
Index: gnash/ChangeLog
diff -u gnash/ChangeLog:1.42 gnash/ChangeLog:1.43
--- gnash/ChangeLog:1.42        Tue Jan 24 09:33:48 2006
+++ gnash/ChangeLog     Thu Jan 26 17:08:03 2006
@@ -1,3 +1,13 @@
+2006-01-26  Rob Savoye  <address@hidden>
+
+       * libbase/triangulate_impl.h: Change %ld to %d in print statement.
+       * libbase/tu_types.h: Use SDL typedefs always.
+
+2006-01-24  Rob Savoye  <address@hidden>
+
+       * macros/opengl.m4: Update based on mad.m4 template.
+       * macros/mad.m4: Fix typo, -I should be a -L.
+
 2006-01-24 Michael Carlson <address@hidden>
 
        * server/array.h: as_array_object now uses deque instead of vector
Index: gnash/libbase/tu_types.h
diff -u gnash/libbase/tu_types.h:1.1 gnash/libbase/tu_types.h:1.2
--- gnash/libbase/tu_types.h:1.1        Tue Dec 20 20:57:00 2005
+++ gnash/libbase/tu_types.h    Thu Jan 26 17:08:03 2006
@@ -1,53 +1,38 @@
-// tu_types.h  -- Ignacio CastaƱo, Thatcher Ulrich 2003
-
-// This source code has been donated to the Public Domain.  Do
-// whatever you want with it.
-
-// Minimal typedefs.  Follows SDL conventions; falls back on SDL.h if
-// platform isn't obvious.
-
+//   Copyright (C) 2005, 2006 Free Software Foundation, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+//
 
 #ifndef TU_TYPES_H
 #define TU_TYPES_H
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 
 #include "tu_config.h"
 #include <stdio.h>
 
+#include <SDL.h>
 
-#if defined(__i386__) || defined(_WIN32)
-
-       // On known little-endian platforms, define this stuff.
-       #define _TU_LITTLE_ENDIAN_      1
-       
-       typedef unsigned char   Uint8;
-       typedef signed char     Sint8;
-       typedef unsigned short  Uint16;
-       typedef short   Sint16;
-       typedef unsigned int    Uint32;
-       typedef int     Sint32;
-       #ifndef _MSC_VER
-               // Probably gcc or something compatible
-               typedef unsigned long long      Uint64;
-               typedef long long Sint64;
-       #else   // _MSC_VER
-               typedef unsigned __int64        Uint64;
-               typedef __int64 Sint64;
-       #endif  // _MSC_VER
-
-#else  // not __I386__ and not _WIN32
-
-       // On unknown platforms, rely on SDL
-       #include <SDL.h>
-       
-       #if SDL_BYTEORDER == SDL_LIL_ENDIAN
-               #define _TU_LITTLE_ENDIAN_ 1
-       #else
-               #undef _TU_LITTLE_ENDIAN_
-       #endif // SDL_BYTEORDER == SDL_LIL_ENDIAN
-
-#endif // not __I366__ and not _WIN32
-
+#if SDL_BYTEORDER == SDL_LIL_ENDIAN
+#define _TU_LITTLE_ENDIAN_ 1
+#else
+#undef _TU_LITTLE_ENDIAN_
+#endif // SDL_BYTEORDER == SDL_LIL_ENDIAN
 
 typedef Uint8 uint8;
 typedef Sint8 sint8;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]