Skip to contentSkip to conversation

header file order in copperplate/registry.c

Xenomai Matthias Schneider 2 participants 2 messages Mar 17, 2014 – Mar 18, 2014

lore
Share & tools
lore
#0 lore raw

Hi all,

shouldn't fuse.h be include after xeno_config.h in copperplate/registry.c of xenomai-forge/next in order to allow xeno_config.h to set the FUSE_USE_VERSION define before it is set to a default value by fuse.h? Otherwise I get compile errors due to mismatching APIs.

Regards,

Matthias

#1 lore raw
Quoted 7 lines · Matthias Schneider

Hi all,

shouldn't fuse.h be include after xeno_config.h in copperplate/registry.c of xenomai-forge/next in order to allow xeno_config.h to set the FUSE_USE_VERSION define before it is set to a default value by fuse.h? Otherwise I get compile errors due to mismatching APIs.

Yep, something is wrong. Another option is to define FUSE_USE_VERSION in the local CFLAGS only for building the registry support. The commit below does this:

http://git.xenomai.org/xenomai-forge.git/commit/?h=next&id=f8dfc3f064ed75deda2336cd5db6bf4713f60700

Signature · 1 line
Philippe.