diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-02-08 01:09:49 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-02-08 01:09:49 +0400 |
commit | f54e3589a45fa25479050e272abc8f386b8634df (patch) | |
tree | b18793908dc50de83abf58ee21a20d99f555c849 /source/blender | |
parent | b3afbcab8ff2330c1473647be330a3ffe9b11885 (diff) |
some systems didnt define NULL
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenlib/BLI_listbase.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/BLI_listbase.h b/source/blender/blenlib/BLI_listbase.h index 77490929efb..a54fa15ef4c 100644 --- a/source/blender/blenlib/BLI_listbase.h +++ b/source/blender/blenlib/BLI_listbase.h @@ -81,8 +81,8 @@ void BLI_rotatelist_last(struct ListBase *lb, void *vlink); * Utility functions to avoid first/last references inline all over. */ BLI_INLINE bool BLI_listbase_is_single(const struct ListBase *lb) { return (lb->first && lb->first == lb->last); } -BLI_INLINE bool BLI_listbase_is_empty(const struct ListBase *lb) { return (lb->first == NULL); } -BLI_INLINE void BLI_listbase_clear(struct ListBase *lb) { lb->first = lb->last = NULL; } +BLI_INLINE bool BLI_listbase_is_empty(const struct ListBase *lb) { return (lb->first == (void *)0); } +BLI_INLINE void BLI_listbase_clear(struct ListBase *lb) { lb->first = lb->last = (void *)0; } /* create a generic list node containing link to provided data */ struct LinkData *BLI_genericNodeN(void *data); |