vlc_fixups.h : get NULL declaration when needed
authorRafaël Carré <rafael.carre@gmail.com>
Fri, 28 Aug 2009 08:22:50 +0000 (10:22 +0200)
committerRafaël Carré <rafael.carre@gmail.com>
Fri, 28 Aug 2009 08:22:50 +0000 (10:22 +0200)
include/vlc_fixups.h

index 24d3069..4c241d5 100644 (file)
@@ -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