[Mesa-dev] [PATCH 4/5] mesa: Remove definition of NULL.

Matt Turner mattst88 at gmail.com
Sun Feb 22 21:13:28 PST 2015


If your stdlib.h doesn't define this you should fix your stdlib.h.
---
 src/mesa/main/compiler.h | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/mesa/main/compiler.h b/src/mesa/main/compiler.h
index 9a5dbcf..d513284 100644
--- a/src/mesa/main/compiler.h
+++ b/src/mesa/main/compiler.h
@@ -206,10 +206,6 @@ static inline GLuint CPU_TO_LE32(GLuint x)
  */
 #define uninitialized_var(x) x = x
 
-#ifndef NULL
-#define NULL 0
-#endif
-
 
 /**
  * LONGSTRING macro
-- 
2.0.5



More information about the mesa-dev mailing list