t = (int) ((r_timereport_current - r_timereport_temp) * 1000000.0);
dpsnprintf(tempbuf, sizeof(tempbuf), "%8i %-11s", t, desc);
- length = strlen(tempbuf);
+ length = (int)strlen(tempbuf);
if (speedstringcount + length > (vid_conwidth.integer / 8))
{
strlcat(r_speeds_string, "\n", sizeof(r_speeds_string));
// also to be able to handle very long sounds.
while (total_out < outcount)
{
- size_t tmpcount, i, j;
- unsigned int interpolation_limit, srcsample;
+ size_t tmpcount, interpolation_limit, i, j;
+ unsigned int srcsample;
samplefrac = 0;
return;
icon = LoadIcon( GetModuleHandle( NULL ), MAKEINTRESOURCE( IDI_ICON1 ) );
-#ifndef WIN64
- SetClassLong( info.window, GCL_HICON, (LONG) icon );
-#else
- SetClassLongPtr( info.window, GCLP_HICON, (LONG_PTR)icon );
+#ifndef SetClassLongPtr
+#define SetClassLongPtr SetClassLong
#endif
+#ifndef GCLP_HICON
+#define GCLP_HICON GCL_HICON
+#endif
+ SetClassLongPtr( info.window, GCLP_HICON, (LONG_PTR)icon );
}
#else
static void VID_SetCaption()