| 网站首页 | 文学 | 小说 | 动漫 | 论文 | 军事 | 科技 | 图片 | 教育 | 哲学 | 历史 | 英语 | 
首页>>计算机 >>程序编程 用户登录 新用户注册
Feature Test Macros

Feature Test Macros

The exact set of features available when you compile a source file is controlled by which feature test macros you define.

If you compile your programs using `gcc -ansi', you get only the ISO C library features, unless you explicitly request additional features by defining one or more of the feature macros. See section `GNU CC Command Options' in The GNU CC Manual, for more information about GCC options.

You should define these macros by using `#define' preprocessor directives at the top of your source code files. These directives must come before any #include of a system header file. It is best to make them the very first thing in the file, preceded only by comments. You could also use the `-D' option to GCC, but it's better if you make the source files indicate their own meaning in a self-contained way.


Macro: _POSIX_SOURCE
If you define this macro, then the functionality from the POSIX.1 standard (IEEE Standard 1003.1) is available, as well as all of
< 1 >   < 2

在百度搜索:Feature Test Macros
推 荐
相 关 文 章
  • Linux ioctl() Primer
  • Building Shared Libraries
  • TCP/IP 协议
  • 高级套接字函数
  • 用户数据报发送
  • 完整的读写函数
  • 服务器和客户机的信息函数
  • 第六篇:从程序员到系统分析员之一
  • 第七篇:从程序员到系统分析员之二
  • 第五篇:达到目标必经的路 之三