OSDN Git Service

[VM][PC9801][EGC] Fix FTBFS with C++20 ; "error: ISO C++17 does not allow 'register...
authorK.Ohta <whatisthis.sowhat@gmail.com>
Wed, 21 Jul 2021 00:06:52 +0000 (09:06 +0900)
committerK.Ohta <whatisthis.sowhat@gmail.com>
Wed, 21 Jul 2021 00:06:52 +0000 (09:06 +0900)
source/src/vm/pc9801/egc.cpp

index 899396f..ff98e7f 100644 (file)
@@ -482,8 +482,8 @@ __DECL_VECTORIZED_LOOP
 #if 1
 #define EGC_OPE_SHIFTB(addr, value)                                    \
        {                                                                                               \
-               register uint8_t* __p = &(egc_inptr[0]);        \
-               register uint8_t __tmp = (uint8_t)value;        \
+               uint8_t* __p = &(egc_inptr[0]); \
+               uint8_t __tmp = (uint8_t)value; \
                if(egc_ope & 0x400) {                                           \
                        __p[ 0] = __tmp;                                                \
                        __p[ 4] = __tmp;                                                \