Skip to content

Commit

Permalink
fixed broken build on Ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
rtv committed Dec 29, 2011
1 parent b73e86d commit 0bb4448
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/ctrl/dw.cc
@@ -1,5 +1,5 @@
#include "idw.h"
#include "stage.hh"
#include "idw.h"

using namespace Stg;

Expand Down
3 changes: 3 additions & 0 deletions examples/ctrl/idw.h
Expand Up @@ -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;
Expand Down

0 comments on commit 0bb4448

Please sign in to comment.