some systems didnt define NULL

This commit is contained in:
Campbell Barton 2014-02-08 08:09:49 +11:00
parent b3afbcab8f
commit f54e3589a4
1 changed files with 2 additions and 2 deletions

View File

@ -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);