Skip to content
Browse files

fixed broken build on Ubuntu

  • Loading branch information...
1 parent b73e86d commit 0bb4448bc10fde093bb1568e53dc318868fa1462 @rtv committed Dec 29, 2011
Showing with 4 additions and 1 deletion.
  1. +1 −1 examples/ctrl/dw.cc
  2. +3 −0 examples/ctrl/idw.h
View
2 examples/ctrl/dw.cc
@@ -1,5 +1,5 @@
-#include "idw.h"
#include "stage.hh"
+#include "idw.h"
using namespace Stg;
View
3 examples/ctrl/idw.h
@@ -13,8 +13,11 @@
#endif
// STL container iterator macros - __typeof is a gcc extension
+// WARNING: assumes container is not modified during iteration
+#ifndef FOR_EACH
#define VAR(V,init) __typeof(init) V=(init)
#define FOR_EACH(I,C) for(VAR(I,(C).begin());I!=(C).end();++I)
+#endif
const unsigned int VCOUNT = 32;
const unsigned int WCOUNT = 32;

0 comments on commit 0bb4448

Please sign in to comment.
Something went wrong with that request. Please try again.