Skip to content

Commit

Permalink
Remove unneeded definition for NULL
Browse files Browse the repository at this point in the history
NULL is already defined in stddef.h,
so a local definition is not be needed.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed Dec 25, 2015
1 parent a361e84 commit 7334572
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions ccutil/host.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,6 @@ typedef unsigned char BOOL8;
#define FALSE 0
#endif

#ifndef NULL
#define NULL 0L
#endif

// Return true if x is within tolerance of y
template<class T> bool NearlyEqual(T x, T y, T tolerance) {
T diff = x - y;
Expand Down

0 comments on commit 7334572

Please sign in to comment.