OSDN Git Service

stagefright aacenc: Fix type definitions for 64 bit platforms
authorMartin Storsjo <martin@martin.st>
Tue, 5 Apr 2011 14:35:49 +0000 (17:35 +0300)
committerMartin Storsjo <martin@martin.st>
Fri, 13 Jan 2012 19:05:56 +0000 (21:05 +0200)
Also don't require LINUX to be defined, enable the MSVC typedefs
only within _MSC_VER.

This fixes a lot of warnings about dereferencing pointer 'winPtr'
breaking strict aliasing rules.

Change-Id: I4afbe0ed81295ebe6e5ee2c7f0fb0cc2dc83c89b

media/libstagefright/codecs/aacenc/basic_op/typedefs.h

index c924e2c..2d5d956 100644 (file)
@@ -77,12 +77,12 @@ typedef unsigned short UWord16;
 /*
  ********* define 32 bit signed/unsigned types & constants
  */
-typedef long Word32;
-typedef unsigned long UWord32;
+typedef int Word32;
+typedef unsigned int UWord32;
 
 
 
-#ifdef LINUX
+#ifndef _MSC_VER
 typedef long long Word64;
 typedef unsigned long long UWord64;
 #else