Skip to content

Commit

Permalink
Consistently and properly define OFF_T_DEFINED and SIZE_T_DEFINED
Browse files Browse the repository at this point in the history
Orig-Change-Id: I8995cf1512efc47e4e6b167a17395ba8a6957a86
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
  • Loading branch information
Bruce Beare authored and digit-android committed Jul 7, 2011
1 parent 0e0fe4a commit 9971903
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Expand Up @@ -36,8 +36,8 @@
#define _I386__TYPES_H_

/* the kernel defines size_t as unsigned int, but g++ wants it to be unsigned long */
#ifndef _SIZE_T
# define _SIZE_T
#ifndef _SIZE_T_DEFINED_
# define _SIZE_T_DEFINED_
# ifdef ANDROID
typedef unsigned int size_t;
# else
Expand Down
Expand Up @@ -54,9 +54,6 @@ typedef long int ssize_t;
typedef long ptrdiff_t;
#endif

#define _OFF_T_DEFINED_
#define _SIZE_T_DEFINED_

#include <linux/types.h>

/* 7.18.1.1 Exact-width integer types */
Expand Down

0 comments on commit 9971903

Please sign in to comment.