diff options
author | shennetsind <ind@henn.et> | 2013-07-08 18:08:39 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-07-08 18:08:39 -0300 |
commit | bb9f27f3fa24c9fab756d60ad961b866ad1c7d35 (patch) | |
tree | 97db1c02f00031e7047ec535b041cb9f7626d499 /src/common | |
parent | 8f7418ffaffb763e435b29eee5707c66d5615e73 (diff) | |
download | hercules-bb9f27f3fa24c9fab756d60ad961b866ad1c7d35.tar.gz hercules-bb9f27f3fa24c9fab756d60ad961b866ad1c7d35.tar.bz2 hercules-bb9f27f3fa24c9fab756d60ad961b866ad1c7d35.tar.xz hercules-bb9f27f3fa24c9fab756d60ad961b866ad1c7d35.zip |
Fixed compiling errors when CONSOLE_PARSE was disabled
Special Thanks to quesoph for bringing this to our attention.
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/HPM.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/HPM.c b/src/common/HPM.c index 9283360dc..53059d224 100644 --- a/src/common/HPM.c +++ b/src/common/HPM.c @@ -255,7 +255,9 @@ void hplugins_config_read(void) { } void hplugins_share_defaults(void) { /* console */ +#ifdef CONSOLE_INPUT HPM->share(console->addCommand,"addCPCommand"); +#endif /* core */ HPM->share(&runflag,"runflag"); HPM->share(arg_v,"arg_v"); @@ -311,8 +313,9 @@ void hpm_init(void) { } HPM->symbol_defaults(); +#ifdef CONSOLE_INPUT console->addCommand("plugins",CPCMD_A(plugins)); - +#endif return; } |