pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Another build failure - security/clamav



I've asked around and yes, standard libc functions may be defined in this way with macros:
C11 7.1.3p1 last subpoint:

    -- Each identifier with file scope listed in any of the following subclauses (including the
       future library directions) is reserved for use as a macro name and as an identifier with
       file scope in the same name space if any of its associated headers is included.

in C11, gets is no longer a standard C function, but the code should probably not call struct members 'gets' anyway.

Further on the same point:
3   If the program removes (with #undef) any macro definition of an identifier in the first
    group listed above, the behavior is undefined.

It would be best to rename gets instead of #undef gets.


Home | Main Index | Thread Index | Old Index