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 <[email protected]>
  • Loading branch information
stweil committed Dec 25, 2015
1 parent acbec71 commit 6440814
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 6440814

Please sign in to comment.