OSDN Git Service

Undef private *_BODY defines after use
authorCalin Juravle <calin@google.com>
Tue, 13 May 2014 10:01:11 +0000 (11:01 +0100)
committerCalin Juravle <calin@google.com>
Tue, 13 May 2014 10:01:11 +0000 (11:01 +0100)
Bug: 14865741
Change-Id: I1398f7b3f64e3c94f2714cede5b61205dfa78a24

libc/include/dirent.h
libc/include/sys/stat.h
libc/include/sys/vfs.h

index bfe4ea4..71eb2e7 100644 (file)
@@ -56,6 +56,8 @@ __BEGIN_DECLS
 struct dirent { __DIRENT64_BODY };
 struct dirent64 { __DIRENT64_BODY };
 
+#undef __DIRENT64_BODY
+
 #define d_fileno d_ino
 
 typedef struct DIR DIR;
index e62e76d..c0c168b 100644 (file)
@@ -130,6 +130,8 @@ __BEGIN_DECLS
 struct stat { __STAT64_BODY };
 struct stat64 { __STAT64_BODY };
 
+#undef __STAT64_BODY
+
 #define st_atimensec st_atime_nsec
 #define st_mtimensec st_mtime_nsec
 #define st_ctimensec st_ctime_nsec
index cd6044d..5358ffb 100644 (file)
@@ -107,6 +107,8 @@ typedef __fsid_t fsid_t;
 struct statfs { __STATFS64_BODY };
 struct statfs64 { __STATFS64_BODY };
 
+#undef __STATFS64_BODY
+
 /* Declare that we have the f_namelen, f_frsize, and f_flags fields. */
 #define _STATFS_F_NAMELEN
 #define _STATFS_F_FRSIZE