1*0bf2cc54Skleink /* $NetBSD: null.h,v 1.9 2010/07/06 11:56:20 kleink Exp $ */ 2*0bf2cc54Skleink 3*0bf2cc54Skleink /* 4*0bf2cc54Skleink * Written by Klaus Klein <kleink@NetBSD.org>, December 22, 1999. 5*0bf2cc54Skleink * Public domain. 6*0bf2cc54Skleink */ 71bba558eSkleink 8a563f6baSchristos #ifndef _SYS_NULL_H_ 9a563f6baSchristos #define _SYS_NULL_H_ 101bba558eSkleink #ifndef NULL 111bba558eSkleink #if !defined(__GNUG__) || __GNUG__ < 2 || (__GNUG__ == 2 && __GNUC_MINOR__ < 90) 128b99487cSfvdl #if !defined(__cplusplus) 13d8e92c2aSdsl #define NULL ((void *)0) 1449f5aa28Sthorpej #else 151bba558eSkleink #define NULL 0 161917e90bSenami #endif /* !__cplusplus */ 171bba558eSkleink #else 181bba558eSkleink #define NULL __null 191bba558eSkleink #endif 201bba558eSkleink #endif 21a563f6baSchristos #endif /* _SYS_NULL_H_ */ 22