Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 200d4a4

Browse files
author
Bryan Henderson
committed
Include stdlib.h to gives its NULL, etc. definitions precedence over ours.
1 parent 25b4ca4 commit 200d4a4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/include/c.h

+7-1
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
#ifndef C_H
4444
#define C_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)