Browse Source

Merge pull request #62217 from georgjz/issue62206

Move definition of const int ERROR_CODE to be reachable by all functi…
Rémi Verschelde 3 years ago
parent
commit
c2f4e734e1
1 changed files with 3 additions and 1 deletions
  1. 3 1
      editor/project_converter_3_to_4.cpp

+ 3 - 1
editor/project_converter_3_to_4.cpp

@@ -32,14 +32,16 @@
 
 #include "modules/modules_enabled.gen.h"
 
+const int ERROR_CODE = 77;
+
 #ifdef MODULE_REGEX_ENABLED
+
 #include "modules/regex/regex.h"
 
 #include "core/os/time.h"
 #include "core/templates/hash_map.h"
 #include "core/templates/list.h"
 
-const int ERROR_CODE = 77;
 const int CONVERSION_MAX_FILE_SIZE = 1024 * 1024 * 4; // 4 MB
 
 static const char *enum_renames[][2] = {