]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/alist.h
- Modify configure.in to check for typeof().
[bacula/bacula] / bacula / src / lib / alist.h
index e8645b58e0b59a389910a19f32f9d52ec9d01ca3..dcdf809d4f171692008f61035521870a2aa14701 100644 (file)
@@ -26,7 +26,7 @@
  *
  * Loop var through each member of list
  */
-#if defined(__GNUC__)
+#ifdef HAVE_TYPEOF
 #define foreach_alist(var, list) \
         for((var)=(typeof(var))(list)->first(); (var); (var)=(typeof(var))(list)->next() )
 #else