]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/dird/dird_conf.c
- Tweak catalog make scripts.
[bacula/bacula] / bacula / src / dird / dird_conf.c
index 9eedba0e6f9113abf8437228dfb1b221d5ab2bd8..e7ba378dd404625dec84e46d943eb374e1d70bb1 100644 (file)
@@ -72,7 +72,13 @@ static void store_short_runscript(LEX *lc, RES_ITEM *item, int index, int pass);
  * then move it to allocated memory when the resource
  * scan is complete.
  */
+#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);