Rtems 4.6.99.3 - cdefs.h

Steven Johnson sjohnson at sakuraindustries.com
Tue May 2 20:36:37 UTC 2006


Further to the following email,

it turns out that the only header file installed by rtems that refers to
cdefs.h is rtems_bsdnet_internal.h

It #include's both 'rtems/cdefs.h' and 'sys/cdefs.h'

Why?

I cant see any definitions in rtems/cdefs.h that arent made in
sys/cdefs.h.  Shouldn't the #include to 'rtems/cdefs.h' be changed to
'sys/cdefs.h' and then the second (and lower) #include of 'sys/cdefs.h'
be removed?

If this is done, i don't find any other references to 'rtems/cdefs.h',
so couldn't it be safely removed?

Attached is a patch which does just this.

Steven Johnson

Steven Johnson wrote:

>Hi,
>
>Im trying to get my application to build now using 4.6.99.3 and im
>getting the following conflict:
>
>include/rtems/cdefs.h:49:1:error:"__END_DECLS" redefined
><blah>
>include/sys/cdefs.h:44:1:error:this is the location of the previous
>definition
>
>Both are part of the RTEMS install, and are not coming from my standard
>library.
>
>Apart from some typographical differences, the nature and contents of
>each file is identical, so why are there 2 files with the same
>declarations?  Isnt one redundant?
>
>How do I prevent this?
>
>Steven
>
>
>
>  
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: rtems-4.6.99.3-remove-rtems-cdefs.patch
Type: text/x-patch
Size: 11270 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/users/attachments/20060503/cd44b597/attachment-0001.bin>


More information about the users mailing list