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

[freewnn:00856] Re: -D_POSIX_SOURCE, etc.



>> Linux と BeOS では CCOPTIONS に
>> というのがあります。
>> どちらのマクロも FreeWnn の source 中には存在しないようですが、それぞ
>> れのシステムで compile 時に意味があるものなんでしょうか。



>>     If you define this macro, then the functionality from
>> the POSIX.1 standard (IEEE Standard 1003.1) is available,
>> as well as all of the ISO C facilities.
>>     The state of _POSIX_SOURCE is irrelevant if you define
>> the macro _POSIX_C_SOURCE to a positive integer.
>> Macro: _BSD_SOURCE
>>     If you define this macro, functionality derived from
>> 4.3 BSD Unix is included as well as the ISO C, POSIX.1,
>> and POSIX.2 material.
>>     Some of the features derived from 4.3 BSD Unix
>> conflict with the corresponding features specified by the
>> POSIX.1 standard. If this macro is defined, the 4.3 BSD
>> definitions take precedence over the POSIX definitions.
>>    Due to the nature of some of the conflicts between 4.3
>> BSD and POSIX.1, you need to use a special BSD
>> compatibility library when linking programs compiled for
>> BSD compatibility. This is because some functions must be
>> defined in two different ways, one of them in the normal C
>> library, and one of them in the compatibility library. If
>> your program defines _BSD_SOURCE, you must give the option
>> `-lbsd-compat' to the compiler or linker when linking the
>> program, to tell it to find functions in this special
>> compatibility library before looking for them in the
>> normal C library.
青野智樹	(aono@cc.osaka-kyoiku.ac.jp)
Personal opinion only...

http://www.freewnn.org/ FreeWnn Project