OSDN Git Service

Include local headers before system headers.
authorrelan <relan@users.noreply.github.com>
Mon, 29 Jun 2015 12:25:00 +0000 (15:25 +0300)
committerrelan <relan@users.noreply.github.com>
Wed, 26 Aug 2015 08:50:43 +0000 (11:50 +0300)
config.h must always be included before stdio.h because it can contain
defines that enable Large File Support (e.g. _FILE_OFFSET_BITS=64 for
glibc on 32-bit machines).

13 files changed:
dump/main.c
fsck/main.c
fuse/main.c
label/main.c
libexfat/byteorder.h
libexfat/exfat.h
libexfat/exfatfs.h
mkfs/cbm.c
mkfs/fat.c
mkfs/main.c
mkfs/mkexfat.c
mkfs/rootdir.c
mkfs/vbr.c

index b85d4a3..8713f64 100644 (file)
        51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
        51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
+#include <exfat.h>
 #include <fcntl.h>
 #include <unistd.h>
 #include <inttypes.h>
 #include <stdio.h>
 #include <string.h>
 #include <fcntl.h>
 #include <unistd.h>
 #include <inttypes.h>
 #include <stdio.h>
 #include <string.h>
-#include <exfat.h>
 
 static void print_generic_info(const struct exfat_super_block* sb)
 {
 
 static void print_generic_info(const struct exfat_super_block* sb)
 {
index 3e60ac3..b3709ce 100644 (file)
        51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
        51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
+#include <exfat.h>
 #include <stdio.h>
 #include <string.h>
 #include <stdio.h>
 #include <string.h>
-#include <exfat.h>
-#include <exfatfs.h>
 #include <inttypes.h>
 #include <unistd.h>
 
 #include <inttypes.h>
 #include <unistd.h>
 
index 52aad4b..5370359 100644 (file)
@@ -20,6 +20,7 @@
        51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
        51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
+#include <exfat.h>
 #define FUSE_USE_VERSION 26
 #include <fuse.h>
 #include <errno.h>
 #define FUSE_USE_VERSION 26
 #include <fuse.h>
 #include <errno.h>
@@ -27,7 +28,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <exfat.h>
 #include <inttypes.h>
 #include <limits.h>
 #include <sys/types.h>
 #include <inttypes.h>
 #include <limits.h>
 #include <sys/types.h>
index c50b769..f2bca13 100644 (file)
@@ -20,9 +20,9 @@
        51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
        51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
+#include <exfat.h>
 #include <stdio.h>
 #include <string.h>
 #include <stdio.h>
 #include <string.h>
-#include <exfat.h>
 
 int main(int argc, char* argv[])
 {
 
 int main(int argc, char* argv[])
 {
index f63c12a..472cb48 100644 (file)
@@ -23,8 +23,9 @@
 #ifndef BYTEORDER_H_INCLUDED
 #define BYTEORDER_H_INCLUDED
 
 #ifndef BYTEORDER_H_INCLUDED
 #define BYTEORDER_H_INCLUDED
 
-#include <stdint.h>
 #include "platform.h"
 #include "platform.h"
+#include <stdint.h>
+#include <stddef.h>
 
 typedef struct { uint16_t __u16; } le16_t;
 typedef struct { uint32_t __u32; } le32_t;
 
 typedef struct { uint16_t __u16; } le16_t;
 typedef struct { uint32_t __u32; } le32_t;
index 9684914..a141c67 100644 (file)
 #ifndef EXFAT_H_INCLUDED
 #define EXFAT_H_INCLUDED
 
 #ifndef EXFAT_H_INCLUDED
 #define EXFAT_H_INCLUDED
 
+#include "config.h"
+#include "compiler.h"
+#include "exfatfs.h"
+#include "version.h"
 #include <stdio.h>
 #include <stdlib.h>
 #include <time.h>
 #include <stdbool.h>
 #include <sys/stat.h>
 #include <sys/types.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <time.h>
 #include <stdbool.h>
 #include <sys/stat.h>
 #include <sys/types.h>
-#include "compiler.h"
-#include "exfatfs.h"
-#include "version.h"
 
 #define EXFAT_NAME_MAX 256
 #define EXFAT_ATTRIB_CONTIGUOUS 0x10000
 
 #define EXFAT_NAME_MAX 256
 #define EXFAT_ATTRIB_CONTIGUOUS 0x10000
index 87b47b5..eca2cac 100644 (file)
@@ -24,6 +24,7 @@
 #define EXFATFS_H_INCLUDED
 
 #include "byteorder.h"
 #define EXFATFS_H_INCLUDED
 
 #include "byteorder.h"
+#include "compiler.h"
 
 typedef uint32_t cluster_t;            /* cluster number */
 
 
 typedef uint32_t cluster_t;            /* cluster number */
 
index a25b290..0250571 100644 (file)
        51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
        51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
-#include <limits.h>
-#include <string.h>
 #include "cbm.h"
 #include "fat.h"
 #include "uct.h"
 #include "rootdir.h"
 #include "cbm.h"
 #include "fat.h"
 #include "uct.h"
 #include "rootdir.h"
+#include <limits.h>
+#include <string.h>
 
 static off_t cbm_alignment(void)
 {
 
 static off_t cbm_alignment(void)
 {
index e5dbdce..c70dc86 100644 (file)
        51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
        51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
-#include <unistd.h>
 #include "fat.h"
 #include "cbm.h"
 #include "uct.h"
 #include "rootdir.h"
 #include "fat.h"
 #include "cbm.h"
 #include "uct.h"
 #include "rootdir.h"
+#include <unistd.h>
 
 static off_t fat_alignment(void)
 {
 
 static off_t fat_alignment(void)
 {
index c10edf2..eee51f1 100644 (file)
        51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
        51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
+#include "mkexfat.h"
+#include "vbr.h"
+#include "fat.h"
+#include "cbm.h"
+#include "uct.h"
+#include "rootdir.h"
+#include <exfat.h>
 #include <sys/types.h>
 #include <sys/time.h>
 #include <unistd.h>
 #include <sys/types.h>
 #include <sys/time.h>
 #include <unistd.h>
 #include <stdio.h>
 #include <string.h>
 #include <limits.h>
 #include <stdio.h>
 #include <string.h>
 #include <limits.h>
-#include <exfat.h>
-#include "mkexfat.h"
-#include "vbr.h"
-#include "fat.h"
-#include "cbm.h"
-#include "uct.h"
-#include "rootdir.h"
 
 const struct fs_object* objects[] =
 {
 
 const struct fs_object* objects[] =
 {
index cd164e9..4b7a344 100644 (file)
        51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
        51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
+#include "mkexfat.h"
 #include <sys/types.h>
 #include <unistd.h>
 #include <inttypes.h>
 #include <stdio.h>
 #include <string.h>
 #include <sys/types.h>
 #include <unistd.h>
 #include <inttypes.h>
 #include <stdio.h>
 #include <string.h>
-#include "mkexfat.h"
 
 static int check_size(off_t volume_size)
 {
 
 static int check_size(off_t volume_size)
 {
index 337e5be..84fa31f 100644 (file)
        51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
        51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
-#include <string.h>
 #include "rootdir.h"
 #include "uct.h"
 #include "cbm.h"
 #include "uctc.h"
 #include "rootdir.h"
 #include "uct.h"
 #include "cbm.h"
 #include "uctc.h"
+#include <string.h>
 
 static off_t rootdir_alignment(void)
 {
 
 static off_t rootdir_alignment(void)
 {
index de9fe09..702aa6d 100644 (file)
        51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
        51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
-#include <string.h>
 #include "vbr.h"
 #include "fat.h"
 #include "cbm.h"
 #include "uct.h"
 #include "rootdir.h"
 #include "vbr.h"
 #include "fat.h"
 #include "cbm.h"
 #include "uct.h"
 #include "rootdir.h"
+#include <string.h>
 
 static off_t vbr_alignment(void)
 {
 
 static off_t vbr_alignment(void)
 {