]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/parse_conf.h
const char * additions
[bacula/bacula] / bacula / src / lib / parse_conf.h
index 7a406faabf32d315074d49850ed722351a7a2030..78c1beba24ddc6db1f105606a98a94394ae3e021 100644 (file)
@@ -110,11 +110,12 @@ void free_resource(int type);
 void init_resource(int type, struct res_items *item);
 void save_resource(int type, struct res_items *item, int pass);
 char *res_to_str(int rcode);
+
 /* Loop through each resource of type, returning in var */
-#ifdef HAVE_WIN32
 #define foreach_res(var, type) \
-    for(var=NULL; *((void **)&(var))=(void *)GetNextRes((type), (RES *)var);) 
-#else
+    for(var=NULL; (*((void **)&(var))=(void *)GetNextRes((type), (RES *)var));) 
+
+#ifdef the_old_way
 #define foreach_res(var, type) \
         for((var)=NULL; (((void *)(var))=GetNextRes((type), (RES *)var));) 
 #endif