Browse Source

fix compilation error when disabling startup banner (#3103)

Javier Peletier 4 years ago
parent
commit
75f1c64cbc
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/lua53/lua.c

+ 2 - 2
app/lua53/lua.c

@@ -115,8 +115,10 @@ static int docall (lua_State *L, int narg, int nres) {
 }
 
 static void print_version (lua_State *L) {
+  #ifndef DISABLE_STARTUP_BANNER
   lua_writestringerror( "\n" NODE_VERSION " build " BUILD_DATE
                         " powered by " LUA_RELEASE " on SDK %s\n", SDK_VERSION);
+  #endif
 }
 
 
@@ -239,9 +241,7 @@ static int pmain (lua_State *L) {
   input_setup(LUA_MAXINPUT, get_prompt(L, 1));
   lua_input_string(" \n", 2);               /* queue CR to issue first prompt */
 
-#ifndef DISABLE_STARTUP_BANNER
   print_version(L);
-#endif
  /*
   * And last of all, kick off application initialisation.  Note that if
   * LUA_INIT_STRING is a file reference and the file system is uninitialised