devel-nytprof icon indicating copy to clipboard operation
devel-nytprof copied to clipboard

Can't compile pr26_win_perf_counter branch on some Win32 systems: invalid suffix "ui64" on integer constant

Open timbunce opened this issue 10 years ago • 1 comments

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

timbunce avatar Jun 24 '14 03:06 timbunce

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.

bulk88 avatar Jun 24 '14 19:06 bulk88