gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash libbase/tu_types.h libbase/tu_types.cpp c...


From: Martin Guy
Subject: [Gnash-commit] gnash libbase/tu_types.h libbase/tu_types.cpp c...
Date: Mon, 30 Apr 2007 17:27:39 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Martin Guy <martinwguy> 07/04/30 17:27:39

Modified files:
        libbase        : tu_types.h tu_types.cpp 
        .              : configure.ac 

Log message:
                * libbase/tu_types.{h,cpp}, server/swf/tag_loaders.cpp:
                  Eliminate remnants of _TU_LITTLE_ENDIAN_
                * configure.ac: Drop now-redundant endian header detection

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/tu_types.h?cvsroot=gnash&r1=1.34&r2=1.35
http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/tu_types.cpp?cvsroot=gnash&r1=1.5&r2=1.6
http://cvs.savannah.gnu.org/viewcvs/gnash/configure.ac?cvsroot=gnash&r1=1.296&r2=1.297

Patches:
Index: libbase/tu_types.h
===================================================================
RCS file: /sources/gnash/gnash/libbase/tu_types.h,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -b -r1.34 -r1.35
--- libbase/tu_types.h  19 Apr 2007 05:23:30 -0000      1.34
+++ libbase/tu_types.h  30 Apr 2007 17:27:39 -0000      1.35
@@ -17,7 +17,7 @@
 // 
 //
 
-/* $Id: tu_types.h,v 1.34 2007/04/19 05:23:30 zoulunkai Exp $ */
+/* $Id: tu_types.h,v 1.35 2007/04/30 17:27:39 martinwguy Exp $ */
 
 #ifndef TU_TYPES_H
 #define TU_TYPES_H
@@ -40,7 +40,6 @@
 typedef unsigned __int64 uint64_t;
 typedef __int64 int64_t;
 # define __PRETTY_FUNCTION__ __FUNCDNAME__
-# define BYTE_ORDER SDL_BYTEORDER
 #else
 # include <inttypes.h>
 
@@ -60,25 +59,6 @@
 
 #endif
 
-#ifndef BYTE_ORDER
-#ifdef HAVE_ENDIAN_H
-       #include <endian.h>
-#elif HAVE_SYS_ENDIAN_H
-       #include <sys/endian.h>
-#elif HAVE_MACHINE_ENDIAN_H
-       #include <machine/endian.h>
-#endif
-#  ifndef BYTE_ORDER
-#    error BYTE_ORDER not defined by endian.h. :(
-#  endif // BYTE_ORDER
-#endif // BYTE_ORDER
-
-#if ((BYTE_ORDER == LITTLE_ENDIAN) || (BYTE_ORDER == __LITTLE_ENDIAN) || 
(BYTE_ORDER == _LITTLE_ENDIAN))
-#      define _TU_LITTLE_ENDIAN_ 1
-#else
-#      undef _TU_LITTLE_ENDIAN_
-#endif //BYTE_ORDER == SDL_LIL_ENDIAN
-
 // A function to run some validation checks.
 DSOEXPORT bool tu_types_validate();
 

Index: libbase/tu_types.cpp
===================================================================
RCS file: /sources/gnash/gnash/libbase/tu_types.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- libbase/tu_types.cpp        11 Apr 2007 17:54:21 -0000      1.5
+++ libbase/tu_types.cpp        30 Apr 2007 17:27:39 -0000      1.6
@@ -28,25 +28,6 @@
                return false;
        }
 
-       // Endian checks.
-       char* buf = "1234";
-
-#ifdef _TU_LITTLE_ENDIAN_
-       if (*(uint32_t*) buf != 0x34333231)
-       {
-               // No good.
-               assert(0);
-               return false;
-       }
-#else  // not _TU_LITTLE_ENDIAN_
-       if (*(uint32_t*) buf != 0x31323334)
-       {
-               // No good.
-               assert(0);
-               return false;
-       }
-#endif // not _TU_LITTLE_ENDIAN_
-
        // Checks passed.
        return true;
 }

Index: configure.ac
===================================================================
RCS file: /sources/gnash/gnash/configure.ac,v
retrieving revision 1.296
retrieving revision 1.297
diff -u -b -r1.296 -r1.297
--- configure.ac        30 Apr 2007 16:42:56 -0000      1.296
+++ configure.ac        30 Apr 2007 17:27:39 -0000      1.297
@@ -15,7 +15,7 @@
 dnl  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 dnl  
 
-dnl $Id: configure.ac,v 1.296 2007/04/30 16:42:56 strk Exp $
+dnl $Id: configure.ac,v 1.297 2007/04/30 17:27:39 martinwguy Exp $
 
 AC_PREREQ(2.50)
 AC_INIT(gnash, cvs)
@@ -606,9 +606,6 @@
 dnl Look for Win32 networking stuff
 AC_CHECK_HEADERS(winsock.h)
 AC_CHECK_HEADERS(winsock2.h)
-AC_CHECK_HEADERS(sys/endian.h)
-AC_CHECK_HEADERS(machine/endian.h)
-AC_CHECK_HEADERS(endian.h)
 AC_CHECK_FUNCS(socket)
 AC_CHECK_FUNCS(CreateFileMappingA)
 




reply via email to

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