vlc_fixups.h : get NULL declaration when needed
[vlc.git] / 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