Skip to contentSkip to conversation

Problem with #define uint "i"

Xenomai-core Wolfgang Grandegger 2 participants 2 messages Jan 6, 2006

lore
Share & tools
lore
#0 lore raw

Hallo,

when trying to build RTnet with Xenomai and Linux 2.4.25 for PowerPC, I stumbeld over the following problem:

In "linuxppc_2_4_devel/include/asm-generic/xenomai/wrappers.h" there is defined:

  #define ulong "i"
  #define uint  "i"

This makes trouble when a driver uses the types uint or ulong, which is the case for the MPC RTnet drivers. Can we use different names for the above definitions?

Thanks.

Wolfgang.

#1 lore raw
Quoted 11 lines · Wolfgang Grandegger

Hallo,

when trying to build RTnet with Xenomai and Linux 2.4.25 for PowerPC, I stumbeld over the following problem:

In "linuxppc_2_4_devel/include/asm-generic/xenomai/wrappers.h" there is defined:

  #define ulong "i"
  #define uint  "i"

This makes trouble when a driver uses the types uint or ulong, which is the case for the MPC RTnet drivers. Can we use different names for the above definitions?

Yes, will fix in Xenomai. Actually, since module_param() has been backported in its simplest forms to 2.4, the above hack should be useless.

Quoted 9 lines

Thanks.

Wolfgang.

_______________________________________________
Xenomai-core mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-core

Signature · 1 line
Philippe.