[vlc-devel] commit: vlc_fixups.h : get NULL declaration when needed ( Rafaël Carré )

git version control git at videolan.org
Fri Aug 28 10:30:27 CEST 2009


vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Fri Aug 28 10:22:50 2009 +0200| [db4c71601807582f3d0ee8f672d7b1a31105871b] | committer: Rafaël Carré 

vlc_fixups.h : get NULL declaration when needed

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=db4c71601807582f3d0ee8f672d7b1a31105871b
---

 include/vlc_fixups.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/include/vlc_fixups.h b/include/vlc_fixups.h
index 24d3069..4c241d5 100644
--- a/include/vlc_fixups.h
+++ b/include/vlc_fixups.h
@@ -38,6 +38,11 @@ typedef struct
 } lldiv_t;
 #endif
 
+#if !defined(HAVE_GETENV) || \
+    !defined(HAVE_USELOCALE)
+# include <stdlib.h> /* NULL */
+#endif
+
 #ifndef HAVE_REWIND
 # include <stdio.h> /* FILE */
 #endif




More information about the vlc-devel mailing list