Compile error TH/THMath.h:134:3

local/anaconda/lib/python2.7/site-packages/torch/utils/ffi/…/…/lib/include/TH/THMath.h:134:3: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
for (size_t i = 0; i <= len; i++)

how can I solve it?