Skip to content

Commit

Permalink
Put variable declarations inside relevant #ifndef
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterDuke17 committed Jan 6, 2020
1 parent b9fa673 commit 3d43242
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/vm/moar/runner/main.c
Expand Up @@ -158,17 +158,21 @@ int wmain(int argc, wchar_t *wargv[])

char *nqp_home;
size_t nqp_home_size;
#ifndef STATIC_NQP_HOME
const char nqp_rel_path[14] = "/../share/nqp";
const size_t nqp_rel_path_size = 13;
const char nqp_check_path[28] = "/lib/NQPCORE.setting.moarvm";
const size_t nqp_check_path_size = 27;
#endif

char *rakudo_home;
size_t rakudo_home_size;
#ifndef STATIC_RAKUDO_HOME
const char perl6_rel_path[16] = "/../share/perl6";
const size_t perl6_rel_path_size = 15;
const char perl6_check_path[22] = "/runtime/perl6.moarvm";
const size_t perl6_check_path_size = 21;
#endif

char *lib_path[3];
char *perl6_file;
Expand Down

0 comments on commit 3d43242

Please sign in to comment.