psx.h: define root counter specs as macros
ISO C considers enumerators of int type, so any value larger than 0x7FFFFFFF is considered invalid on platforms where sizeof (int) == 4. A workaround for this limitation on the language is to use macros instead.
This commit is contained in:
parent
ec53e6d22f
commit
d13246d52f
|
@ -125,18 +125,14 @@ enum cop0_register_numbers
|
|||
/**
|
||||
* Root counter specifications
|
||||
*/
|
||||
|
||||
enum psx_rcnt_specs
|
||||
{
|
||||
/** Pixel clock*/
|
||||
RCntCNT0 = 0xf2000000,
|
||||
/** Horizontal sync*/
|
||||
RCntCNT1 = 0xf2000001,
|
||||
/** System clock / 8 */
|
||||
RCntCNT2 = 0xf2000002,
|
||||
/** VSync (VBlank) */
|
||||
RCntCNT3 = 0xf2000003,
|
||||
};
|
||||
/** Pixel clock*/
|
||||
#define RCntCNT0 0xf2000000
|
||||
/** Horizontal sync*/
|
||||
#define RCntCNT1 0xf2000001
|
||||
/** System clock / 8 */
|
||||
#define RCntCNT2 0xf2000002
|
||||
/** VSync (VBlank) */
|
||||
#define RCntCNT3 0xf2000003
|
||||
|
||||
/**
|
||||
* Root counter modes
|
||||
|
|
Loading…
Reference in New Issue