devel-nytprof
devel-nytprof copied to clipboard
Can't compile pr26_win_perf_counter branch on some Win32 systems: invalid suffix "ui64" on integer constant
I released fb9f712 to cpan as Devel-NYTProf-5.06_80.tar.gz and got this smoke report
NYTProf.xs:343:35: error: invalid suffix "ui64" on integer constant
unsigned __int64 time_frequency = 0ui64;
^
there are also some warnings. /cc @bulk88
https://github.com/bulk88/devel-nytprof/tree/issue_31 has a fix for GCC, VC6 is more tricky, since it does NOT allow unsigned int64 to double casts. See the workaround in the patch. The problem is NYTPIuint642NV macro looks incompatible with get_ticks_between macro, since typ is a cast type token not an expression. Not sure how to proceed.