関連
http://qiita.com/7of9/items/1965c5e8d9e839652808#comment-f4d36d428c9911308cb2
上記で掲示いただいたideone上のCコードで以下の警告が出ている。
prog.c: In function ‘getElapsedSecond’:
prog.c:112:27: warning: C++ style comments are incompatible with C90
workdt.tm_isdst = -1; // summer time flag
//というコメント記載はC99からの対応のようだ。
// comments are not allowed in old (pre 99) C versions, use /**/ (or remove the -ansi, that is a synonym for the C89 standard)
自分が使っている組込みの開発環境を見直すと、C dialectにC89とC99がある。現在C99を使っているため、上記の警告は出ていなかったようだ。