X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fstored%2Fstored_conf.c;h=e392d0b3d198ce17f2dcc8e7616f91e276112be6;hb=b22b260eaa7fb9f122523fff0e324dca5904b97f;hp=51b7dd76b7e9fe57a3862a707921f5547ebfa187;hpb=4583699daea78d7c4828d727237fa29aa686bf50;p=bacula%2Fbacula diff --git a/bacula/src/stored/stored_conf.c b/bacula/src/stored/stored_conf.c index 51b7dd76b7..e392d0b3d1 100644 --- a/bacula/src/stored/stored_conf.c +++ b/bacula/src/stored/stored_conf.c @@ -23,9 +23,6 @@ #include "bacula.h" #include "stored.h" -extern int debug_level; - - /* First and last resource ids */ int r_first = R_FIRST; int r_last = R_LAST; @@ -39,7 +36,13 @@ static void store_devtype(LEX *lc, RES_ITEM *item, int index, int pass); /* We build the current resource here statically, * then move it to dynamic memory */ +#if defined(_MSC_VER) +extern "C" { // work around visual compiler mangling variables + URES res_all; +} +#else URES res_all; +#endif int res_all_size = sizeof(res_all); /* Definition of records permitted within each