vlc | branch: master | Francois Cartegnie <fcvlc...@free.fr> | Tue Apr 10 
06:13:08 2018 +0200| [0151a4fd9fc47df8454072f1443f92a717ca7c9b] | committer: 
Francois Cartegnie

lua: io: fix build with recent lua

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

 modules/lua/libs/io.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/lua/libs/io.c b/modules/lua/libs/io.c
index 5d72d18fb8..1ea8bc6774 100644
--- a/modules/lua/libs/io.c
+++ b/modules/lua/libs/io.c
@@ -34,6 +34,11 @@
 #include "../vlc.h"
 #include "../libs.h"
 
+#ifndef LUA_NUMBER_SCAN
+  /* Lua 5.3 only provides str<>long macros */
+  #define LUA_NUMBER_SCAN "%lf"
+#endif
+
 static int vlclua_io_file_read_line( lua_State *L, FILE* p_file )
 {
     char* psz_line = NULL;

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to