mirror of
https://github.com/relan/exfat.git
synced 2026-01-12 00:18:54 +08:00
Include config.h before all other headers.
The defines in config.h may affect OS and FUSE API and ABI, so make sure to include it before everything else.
This commit is contained in:
@@ -23,6 +23,6 @@
|
||||
sbin_PROGRAMS = exfatattrib
|
||||
dist_man8_MANS = exfatattrib.8
|
||||
exfatattrib_SOURCES = main.c
|
||||
exfatattrib_CPPFLAGS = -I$(top_srcdir)/libexfat
|
||||
exfatattrib_CPPFLAGS = -imacros $(top_srcdir)/libexfat/config.h
|
||||
exfatattrib_CFLAGS = $(FUSE2_CFLAGS) $(FUSE3_CFLAGS) $(UBLIO_CFLAGS)
|
||||
exfatattrib_LDADD = $(top_srcdir)/libexfat/libexfat.a $(UBLIO_LIBS)
|
||||
|
||||
@@ -23,6 +23,6 @@
|
||||
sbin_PROGRAMS = dumpexfat
|
||||
dist_man8_MANS = dumpexfat.8
|
||||
dumpexfat_SOURCES = main.c
|
||||
dumpexfat_CPPFLAGS = -I$(top_srcdir)/libexfat
|
||||
dumpexfat_CPPFLAGS = -imacros $(top_srcdir)/libexfat/config.h
|
||||
dumpexfat_CFLAGS = $(FUSE2_CFLAGS) $(FUSE3_CFLAGS) $(UBLIO_CFLAGS)
|
||||
dumpexfat_LDADD = $(top_srcdir)/libexfat/libexfat.a $(UBLIO_LIBS)
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
sbin_PROGRAMS = exfatfsck
|
||||
dist_man8_MANS = exfatfsck.8
|
||||
exfatfsck_SOURCES = main.c
|
||||
exfatfsck_CPPFLAGS = -I$(top_srcdir)/libexfat
|
||||
exfatfsck_CPPFLAGS = -imacros $(top_srcdir)/libexfat/config.h
|
||||
exfatfsck_CFLAGS = $(FUSE2_CFLAGS) $(FUSE3_CFLAGS) $(UBLIO_CFLAGS)
|
||||
exfatfsck_LDADD = $(top_srcdir)/libexfat/libexfat.a $(UBLIO_LIBS)
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
sbin_PROGRAMS = mount.exfat-fuse
|
||||
dist_man8_MANS = mount.exfat-fuse.8
|
||||
mount_exfat_fuse_SOURCES = main.c
|
||||
mount_exfat_fuse_CPPFLAGS = -I$(top_srcdir)/libexfat
|
||||
mount_exfat_fuse_CPPFLAGS = -imacros $(top_srcdir)/libexfat/config.h
|
||||
mount_exfat_fuse_CFLAGS = $(FUSE2_CFLAGS) $(FUSE3_CFLAGS) $(UBLIO_CFLAGS)
|
||||
mount_exfat_fuse_LDADD = $(top_srcdir)/libexfat/libexfat.a $(FUSE2_LIBS) $(FUSE3_LIBS) $(UBLIO_LIBS)
|
||||
|
||||
|
||||
@@ -23,6 +23,6 @@
|
||||
sbin_PROGRAMS = exfatlabel
|
||||
dist_man8_MANS = exfatlabel.8
|
||||
exfatlabel_SOURCES = main.c
|
||||
exfatlabel_CPPFLAGS = -I$(top_srcdir)/libexfat
|
||||
exfatlabel_CPPFLAGS = -imacros $(top_srcdir)/libexfat/config.h
|
||||
exfatlabel_CFLAGS = $(FUSE2_CFLAGS) $(FUSE3_CFLAGS) $(UBLIO_CFLAGS)
|
||||
exfatlabel_LDADD = $(top_srcdir)/libexfat/libexfat.a $(UBLIO_LIBS)
|
||||
|
||||
@@ -37,4 +37,5 @@ libexfat_a_SOURCES = \
|
||||
time.c \
|
||||
utf.c \
|
||||
utils.c
|
||||
libexfat_a_CPPFLAGS = -imacros $(top_srcdir)/libexfat/config.h
|
||||
libexfat_a_CFLAGS = $(FUSE2_CFLAGS) $(FUSE3_CFLAGS) $(UBLIO_CFLAGS)
|
||||
|
||||
@@ -24,10 +24,6 @@
|
||||
#ifndef EXFAT_H_INCLUDED
|
||||
#define EXFAT_H_INCLUDED
|
||||
|
||||
#ifndef ANDROID
|
||||
/* Android.bp is used instead of autotools when targeting Android */
|
||||
#include "config.h"
|
||||
#endif
|
||||
#include "compiler.h"
|
||||
#include "exfatfs.h"
|
||||
#include <stdio.h>
|
||||
|
||||
@@ -38,7 +38,7 @@ mkexfatfs_SOURCES = \
|
||||
uctc.h \
|
||||
vbr.c \
|
||||
vbr.h
|
||||
mkexfatfs_CPPFLAGS = -I$(top_srcdir)/libexfat
|
||||
mkexfatfs_CPPFLAGS = -imacros $(top_srcdir)/libexfat/config.h
|
||||
mkexfatfs_CFLAGS = $(FUSE2_CFLAGS) $(FUSE3_CFLAGS) $(UBLIO_CFLAGS)
|
||||
mkexfatfs_LDADD = $(top_srcdir)/libexfat/libexfat.a $(UBLIO_LIBS)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user