diff options
-rw-r--r-- | CHANGELOG.txt | 5 | ||||
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | agbsum/include/agbsum.h | 4 | ||||
-rw-r--r-- | agbsum/src/main.c | 4 |
4 files changed, 10 insertions, 5 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt index aea31f0..f04e537 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,3 +1,8 @@ +| 1 + +- Use typeof instead of typeof_unqual; +- Use CHAR_WIDTH instead of CHAR_BIT; + | 0 - Initial; diff --git a/CMakeLists.txt b/CMakeLists.txt index 7eb748c..ecf44f9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,7 @@ cmake_minimum_required( project( agbsum VERSION - 0 + 1 DESCRIPTION "GBA ROM header checksum patcher." HOMEPAGE_URL diff --git a/agbsum/include/agbsum.h b/agbsum/include/agbsum.h index ed8f8a5..bda07c1 100644 --- a/agbsum/include/agbsum.h +++ b/agbsum/include/agbsum.h @@ -17,9 +17,9 @@ /* Temporary C2x support: */ #define constexpr static const /* This can make arrays variadic-length. */ #define nullptr NULL -#define typeof_unqual __typeof__ +#define typeof __typeof__ -constexpr uint_least64_t agbsum_ver = 0x0u; +constexpr uint_least64_t agbsum_ver = 0x1u; constexpr size_t agbsum_romstart = 0xA0u; diff --git a/agbsum/src/main.c b/agbsum/src/main.c index 0c6e398..2398e1d 100644 --- a/agbsum/src/main.c +++ b/agbsum/src/main.c @@ -15,9 +15,9 @@ #include <stdint.h> #include <stdio.h> -_Static_assert(CHAR_BIT == 0x8u); +_Static_assert(CHAR_WIDTH == 0x8u); -typeof_unqual (agbsum_dat) agbsum_dat; +typeof (agbsum_dat) agbsum_dat; int main(int const argc,char const * const * const argv) { agbsum_initdat(); |