why does Erlang define macros reserved for the C compiler?

Bengt Kleberg bengt.kleberg@REDACTED
Thu May 18 10:37:04 CEST 2006


On 2006-05-17 19:38, Matthias Lang wrote:
> I'm looking at erts/emulator/beam/sys.h.

...deleted
>   _POSIX_SOURCE
>   _XOPEN_SOURCE

 > Does anybody know more?

if the question included the ones above then these 2 are feature test 
macros. eg, if you want to compile a file so that it only depends upon 
posix limits (and no implementation-defined limits) you should define 
_POSIX_SOURCE.


bengt



More information about the erlang-questions mailing list