27 Star 123 Fork 0

Gitee 极速下载/OpenSSL

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/openssl/openssl
克隆/下载
NOTES-ANSI.md 835 Bytes
一键复制 编辑 原始数据 按行查看 历史

Notes on ANSI C

When building for pure ANSI C (C89/C90), you must configure with at least the following configuration settings:

  • no-asm

    There are cases of asm() calls in our C source, which isn't supported in pure ANSI C.

  • no-secure-memory

    The secure memory calls aren't supported with ANSI C.

  • -D_XOPEN_SOURCE=1

    This macro enables the use of the following types, functions and global variables:

    • timezone
  • -D_POSIX_C_SOURCE=200809L

    This macro enables the use of the following types, functions and global variables:

    • ssize_t
    • strdup()

It's arguable that with gcc and clang, all of these issues are removed when defining the macro _DEFAULT_SOURCE. However, that effectively sets the C language level to C99, which isn't ANSI C.

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/mirrors/openssl.git
git@gitee.com:mirrors/openssl.git
mirrors
openssl
OpenSSL
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891