# HG changeset patch # User ben # Date 1177156841 0 # Node ID 9525b6aac600a5f6e284e5b1138ff24e49a454af # Parent c2c2bc418257cab725f0d8e5b6b8cbd3b2099df3 u_char is broken under mingw, use unsigned char instead, fix by aurel diff -r c2c2bc418257 -r 9525b6aac600 vidix/pm2_vid.c --- a/vidix/pm2_vid.c Sat Apr 21 11:59:30 2007 +0000 +++ b/vidix/pm2_vid.c Sat Apr 21 12:00:41 2007 +0000 @@ -48,7 +48,7 @@ #endif #define WRITE_REG(offset,val) \ - *(volatile u_long *)(((u_char *)(pm2_reg_base)) + offset) = (val) + *(volatile u_long *)(((unsigned char *)(pm2_reg_base)) + offset) = (val) #define READ_REG(offset) \ *(volatile unsigned long *)(((unsigned char *)(pm2_reg_base)) + offset)