Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit200d4a4

Browse files
author
Bryan Henderson
committed
Include stdlib.h to gives its NULL, etc. definitions precedence over ours.
1 parent25b4ca4 commit200d4a4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎src/include/c.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* Copyright (c) 1994, Regents of the University of California
99
*
10-
* $Id: c.h,v 1.3 1996/11/05 05:28:20 scrappy Exp $
10+
* $Id: c.h,v 1.4 1996/11/14 06:06:39 bryanh Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -43,6 +43,12 @@
4343
#ifndefC_H
4444
#defineC_H
4545

46+
/* We have to include stdlib.h here because it defines many of these macros
47+
on some platforms, and we only want our definitions used if stdlib.h doesn't
48+
have its own.
49+
*/
50+
#include<stdlib.h>
51+
4652
/* ----------------------------------------------------------------
4753
*Section 1: bool, true, false, TRUE, FALSE
4854
* ----------------------------------------------------------------

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp