1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-17 20:30:36 +00:00

Update checkversion.c

Add missing shifts.
This commit is contained in:
lcvgit 2024-10-21 10:09:00 -05:00 committed by GitHub
parent 02840d503c
commit c41eb007e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,11 +10,11 @@
#include <stdio.h>
#include <stdlib.h>
#if (((__CC65__ & 0xff00) >> 8) > 3) || ((__CC65__ & 0x000f) > 0)
#if ((__CC65__ >> 8) > 3) || ((__CC65__ & 0x000f) > 0)
/* compiler version is 2.19-git or higher */
# define VER_MAJOR ((__CC65__ >> 8) & 0xff)
# define VER_MINOR (__CC65__ & 0xff)
#elif (((__CC65__ & 0xff00) >> 8) == 3)
#elif ((__CC65__ >> 8) == 3)
/* broken values in version 2.16 - 2.19-git before the bug was fixed */
# define VER_MAJOR 2
# define VER_MINOR (((__CC65__ >> 4) & 0x0f) + 16)