+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/local/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/xm8-1.70nb11/work.log
+ su pbulk -c '"$@"' make /opt/local/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/xm8-1.70nb11/work.log
===> Building for xm8-1.70nb11
g++ -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/SDL2 -I/opt/local/include -I/opt/local/include/libdrm -I/usr/include -I/opt/local/include/ncurses -DSDL -D_PC8801MA -c -Wall -I/opt/local/include/SDL2 -D_REENTRANT -I../UI -I../ePC-8801MA -I../ePC-8801MA/vm -I../ePC-8801MA/vm/pc8801 -I../ePC-8801MA/vm/fmgen ../UI/app.cpp -o ../UI/app.o
g++ -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/SDL2 -I/opt/local/include -I/opt/local/include/libdrm -I/usr/include -I/opt/local/include/ncurses -DSDL -D_PC8801MA -c -Wall -I/opt/local/include/SDL2 -D_REENTRANT -I../UI -I../ePC-8801MA -I../ePC-8801MA/vm -I../ePC-8801MA/vm/pc8801 -I../ePC-8801MA/vm/fmgen ../UI/audio.cpp -o ../UI/audio.o
g++ -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/SDL2 -I/opt/local/include -I/opt/local/include/libdrm -I/usr/include -I/opt/local/include/ncurses -DSDL -D_PC8801MA -c -Wall -I/opt/local/include/SDL2 -D_REENTRANT -I../UI -I../ePC-8801MA -I../ePC-8801MA/vm -I../ePC-8801MA/vm/pc8801 -I../ePC-8801MA/vm/fmgen ../UI/converter.cpp -o ../UI/converter.o
g++ -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/SDL2 -I/opt/local/include -I/opt/local/include/libdrm -I/usr/include -I/opt/local/include/ncurses -DSDL -D_PC8801MA -c -Wall -I/opt/local/include/SDL2 -D_REENTRANT -I../UI -I../ePC-8801MA -I../ePC-8801MA/vm -I../ePC-8801MA/vm/pc8801 -I../ePC-8801MA/vm/fmgen ../UI/diskmgr.cpp -o ../UI/diskmgr.o
In file included from ../UI/audio.cpp:15:
../UI/audio.h:60:19: error: 'Uint8' has not been declared
   60 |         int Write(Uint8 *stream, int len);
      |                   ^~~~~
../UI/audio.h:62:52: error: 'Uint8' has not been declared
   62 |         static void CommonCallback(void *userdata, Uint8 *stream, int len);
      |                                                    ^~~~~
../UI/audio.h:64:23: error: 'Uint8' has not been declared
   64 |         void Callback(Uint8 *steram, int len);
      |                       ^~~~~
../UI/audio.h:70:9: error: 'SDL_sem' does not name a type
   70 |         SDL_sem *audio_sem;
      |         ^~~~~~~
../UI/audio.h:76:9: error: 'SDL_AudioDeviceID' does not name a type
   76 |         SDL_AudioDeviceID device_id;
      |         ^~~~~~~~~~~~~~~~~
../UI/audio.h:78:9: error: 'SDL_AudioSpec' does not name a type
   78 |         SDL_AudioSpec device_spec;
      |         ^~~~~~~~~~~~~
../UI/audio.h:84:9: error: 'Uint8' does not name a type; did you mean 'uint8'?
   84 |         Uint8 *sample_buffer;
      |         ^~~~~
      |         uint8
../UI/audio.cpp: In constructor 'Audio::Audio()':
../UI/audio.cpp:24:9: error: 'audio_sem' was not declared in this scope
   24 |         audio_sem = NULL;
      |         ^~~~~~~~~
../UI/audio.cpp:27:9: error: 'device_id' was not declared in this scope
   27 |         device_id = 0;
      |         ^~~~~~~~~
../UI/audio.cpp:34:9: error: 'sample_buffer' was not declared in this scope; did you mean 'sample_per'?
   34 |         sample_buffer = NULL;
      |         ^~~~~~~~~~~~~
      |         sample_per
../UI/audio.cpp: In member function 'bool Audio::Init()':
../UI/audio.cpp:63:9: error: 'audio_sem' was not declared in this scope
   63 |         audio_sem = SDL_CreateSemaphore(1);
      |         ^~~~~~~~~
../UI/audio.cpp:63:21: error: 'SDL_CreateSemaphore' was not declared in this scope
   63 |         audio_sem = SDL_CreateSemaphore(1);
      |                     ^~~~~~~~~~~~~~~~~~~
../UI/audio.cpp:69:26: error: 'SDL_GetNumAudioDevices' was not declared in this scope
   69 |         num_of_devices = SDL_GetNumAudioDevices(0);
      |                          ^~~~~~~~~~~~~~~~~~~~~~
../UI/audio.cpp:79:37: error: 'SDL_GetAudioDeviceName' was not declared in this scope
   79 |                 single_len = strlen(SDL_GetAudioDeviceName(loop, 0));
      |                                     ^~~~~~~~~~~~~~~~~~~~~~
../UI/audio.cpp:85:35: error: 'SDL_malloc' was not declared in this scope; did you mean 'malloc'?
   85 |         name_of_devices = (char *)SDL_malloc(total_len);
      |                                   ^~~~~~~~~~
      |                                   malloc
../UI/audio.cpp:87:17: error: 'SDL_assert' was not declared in this scope
   87 |                 SDL_assert(false);
      |                 ^~~~~~~~~~
In file included from ../ePC-8801MA/vm/../emu.h:14,
                 from ../ePC-8801MA/vm/disk.h:14,
                 from ../UI/diskmgr.cpp:16:
../ePC-8801MA/vm/../config.h:96:33: error: '_MAX_PATH' was not declared in this scope
   96 |         _TCHAR initial_disk_dir[_MAX_PATH];
      |                                 ^~~~~~~~~
../UI/audio.cpp:92:37: error: 'SDL_GetAudioDeviceName' was not declared in this scope
   92 |                 single_len = strlen(SDL_GetAudioDeviceName(loop, 0));
      |                                     ^~~~~~~~~~~~~~~~~~~~~~
../ePC-8801MA/vm/../config.h:97:54: error: '_MAX_PATH' was not declared in this scope
   97 |         _TCHAR recent_disk_path[MAX_FD][MAX_HISTORY][_MAX_PATH];
      |                                                      ^~~~~~~~~
../UI/audio.cpp:99:9: error: 'device_id' was not declared in this scope
   99 |         device_id = 0;
      |         ^~~~~~~~~
../ePC-8801MA/vm/../config.h:104:33: error: '_MAX_PATH' was not declared in this scope
  104 |         _TCHAR initial_tape_dir[_MAX_PATH];
      |                                 ^~~~~~~~~
../ePC-8801MA/vm/../config.h:105:46: error: '_MAX_PATH' was not declared in this scope
  105 |         _TCHAR recent_tape_path[MAX_HISTORY][_MAX_PATH];
      |                                              ^~~~~~~~~
../UI/audio.cpp: In member function 'void Audio::Deinit()':
../UI/audio.cpp:115:17: error: 'SDL_free' was not declared in this scope
  115 |                 SDL_free(name_of_devices);
      |                 ^~~~~~~~
../ePC-8801MA/vm/../config.h:140:31: error: '_MAX_PATH' was not declared in this scope
  140 |         _TCHAR fmgen_dll_path[_MAX_PATH];
      |                               ^~~~~~~~~
../UI/audio.cpp:123:13: error: 'audio_sem' was not declared in this scope
  123 |         if (audio_sem != NULL) {
      |             ^~~~~~~~~
../UI/audio.cpp:124:17: error: 'SDL_DestroySemaphore' was not declared in this scope
  124 |                 SDL_DestroySemaphore(audio_sem);
      |                 ^~~~~~~~~~~~~~~~~~~~
../ePC-8801MA/vm/disk.h:54:26: error: '_MAX_PATH' was not declared in this scope
   54 |         _TCHAR orig_path[_MAX_PATH];
      |                          ^~~~~~~~~
../UI/audio.cpp: In member function 'bool Audio::Open(const OpenParam*)':
../UI/audio.cpp:135:9: error: 'SDL_AudioSpec' was not declared in this scope
  135 |         SDL_AudioSpec device_want;
      |         ^~~~~~~~~~~~~
In file included from ../UI/converter.cpp:15:
../UI/converter.h:38:9: error: 'Uint16' does not name a type; did you mean 'uint16'?
   38 |         Uint16 *ucs_table;
      |         ^~~~~~
      |         uint16
../ePC-8801MA/vm/disk.h:55:26: error: '_MAX_PATH' was not declared in this scope
   55 |         _TCHAR dest_path[_MAX_PATH];
      |                          ^~~~~~~~~
../UI/converter.h:40:22: error: 'Uint16' does not name a type; did you mean 'uint16'?
   40 |         static const Uint16 sjis_table[0x30 * 0xc0];
      |                      ^~~~~~
      |                      uint16
../UI/audio.cpp:139:9: error: 'device_spec' was not declared in this scope
  139 |         device_spec.freq = param->freq;
      |         ^~~~~~~~~~~
../UI/audio.cpp:147:18: error: 'device_want' was not declared in this scope; did you mean 'device_pause'?
  147 |         SDL_zero(device_want);
      |                  ^~~~~~~~~~~
      |                  device_pause
../UI/converter.cpp: In constructor 'Converter::Converter()':
../UI/converter.cpp:23:9: error: 'ucs_table' was not declared in this scope
   23 |         ucs_table = NULL;
      |         ^~~~~~~~~
../ePC-8801MA/vm/disk.h:56:26: error: '_MAX_PATH' was not declared in this scope
   56 |         _TCHAR temp_path[_MAX_PATH];
      |                          ^~~~~~~~~
../UI/audio.cpp:147:9: error: 'SDL_zero' was not declared in this scope
  147 |         SDL_zero(device_want);
      |         ^~~~~~~~
../UI/converter.cpp: In member function 'bool Converter::Init()':
../UI/converter.cpp:41:9: error: 'Uint16' was not declared in this scope; did you mean 'uint16'?
   41 |         Uint16 high;
      |         ^~~~~~
      |         uint16
../UI/converter.cpp:42:15: error: expected ';' before 'low'
   42 |         Uint16 low;
      |               ^~~~
      |               ;
../UI/converter.cpp:43:15: error: 'Uint16' does not name a type; did you mean 'uint16'?
   43 |         const Uint16 *sjis;
      |               ^~~~~~
      |               uint16
../UI/audio.cpp:151:30: error: 'AUDIO_S16SYS' was not declared in this scope
  151 |         device_want.format = AUDIO_S16SYS;
      |                              ^~~~~~~~~~~~
../UI/converter.cpp:46:9: error: 'ucs_table' was not declared in this scope
   46 |         ucs_table = (Uint16*)SDL_malloc(0x10000 * sizeof(Uint16));
      |         ^~~~~~~~~
../UI/converter.cpp:46:29: error: expected primary-expression before ')' token
   46 |         ucs_table = (Uint16*)SDL_malloc(0x10000 * sizeof(Uint16));
      |                             ^
../UI/audio.cpp:153:32: error: 'Uint16' was not declared in this scope; did you mean 'uint16'?
  153 |         device_want.samples = (Uint16)param->samples;
      |                                ^~~~~~
      |                                uint16
../UI/converter.cpp:55:9: error: 'sjis' was not declared in this scope
   55 |         sjis = sjis_table;
      |         ^~~~
../UI/converter.cpp:55:16: error: 'sjis_table' was not declared in this scope
   55 |         sjis = sjis_table;
      |                ^~~~~~~~~~
../UI/audio.cpp:162:9: error: 'device_id' was not declared in this scope
  162 |         device_id = SDL_OpenAudioDevice(name, 0, &device_want, &device_spec, 0);
      |         ^~~~~~~~~
../UI/converter.cpp:56:14: error: 'high' was not declared in this scope
   56 |         for (high=0x8000; high<0xa000; high+=0x0100) {
      |              ^~~~
../UI/converter.cpp:57:22: error: 'low' was not declared in this scope; did you mean 'pow'?
   57 |                 for (low=0x40; low<0x100; low++) {
      |                      ^~~
      |                      pow
../UI/audio.cpp:162:21: error: 'SDL_OpenAudioDevice' was not declared in this scope
  162 |         device_id = SDL_OpenAudioDevice(name, 0, &device_want, &device_spec, 0);
      |                     ^~~~~~~~~~~~~~~~~~~
../UI/converter.cpp:66:14: error: 'high' was not declared in this scope
   66 |         for (high=0xe000; high<0xf000; high+=0x0100) {
      |              ^~~~
../UI/audio.cpp:179:73: error: 'Sint16' was not declared in this scope; did you mean 'uint16'?
  179 |         sample_size = (device_spec.freq * device_spec.channels * sizeof(Sint16) * param->buffer) / 1000;
      |                                                                         ^~~~~~
      |                                                                         uint16
In file included from ../UI/diskmgr.cpp:19:
../UI/diskmgr.h:88:19: error: '_MAX_PATH' was not declared in this scope
   88 |         char path[_MAX_PATH * 3];
      |                   ^~~~~~~~~
../UI/converter.cpp:67:22: error: 'low' was not declared in this scope; did you mean 'pow'?
   67 |                 for (low=0x40; low<0x100; low++) {
      |                      ^~~
      |                      pow
../UI/audio.cpp:183:9: error: 'sample_buffer' was not declared in this scope; did you mean 'sample_per'?
  183 |         sample_buffer = (Uint8*)SDL_malloc(sample_size);
      |         ^~~~~~~~~~~~~
      |         sample_per
../UI/audio.cpp:183:26: error: 'Uint8' was not declared in this scope; did you mean 'uint8'?
  183 |         sample_buffer = (Uint8*)SDL_malloc(sample_size);
      |                          ^~~~~
      |                          uint8
../UI/audio.cpp:183:32: error: expected primary-expression before ')' token
  183 |         sample_buffer = (Uint8*)SDL_malloc(sample_size);
      |                                ^
../UI/converter.cpp: In member function 'void Converter::Deinit()':
../UI/converter.cpp:85:13: error: 'ucs_table' was not declared in this scope
   85 |         if (ucs_table != NULL) {
      |             ^~~~~~~~~
../UI/diskmgr.h:90:18: error: '_MAX_PATH' was not declared in this scope
   90 |         char dir[_MAX_PATH * 3];
      |                  ^~~~~~~~~
../UI/audio.cpp: In member function 'void Audio::Close()':
../UI/audio.cpp:202:13: error: 'sample_buffer' was not declared in this scope; did you mean 'sample_per'?
  202 |         if (sample_buffer != NULL) {
      |             ^~~~~~~~~~~~~
      |             sample_per
../UI/converter.cpp:86:17: error: 'SDL_free' was not declared in this scope
   86 |                 SDL_free(ucs_table);
      |                 ^~~~~~~~
../UI/audio.cpp:203:17: error: 'SDL_free' was not declared in this scope
  203 |                 SDL_free(sample_buffer);
      |                 ^~~~~~~~
../UI/audio.cpp:208:13: error: 'device_id' was not declared in this scope
  208 |         if (device_id > 0) {
      |             ^~~~~~~~~
../UI/audio.cpp:209:17: error: 'SDL_CloseAudioDevice' was not declared in this scope
  209 |                 SDL_CloseAudioDevice(device_id);
      |                 ^~~~~~~~~~~~~~~~~~~~
../UI/diskmgr.h:92:25: error: '_MAX_PATH' was not declared in this scope
   92 |         char state_path[_MAX_PATH * 3];
      |                         ^~~~~~~~~
../UI/diskmgr.h:100:9: error: 'Uint8' does not name a type; did you mean 'uint8'?
  100 |         Uint8 *wp_list;
      |         ^~~~~
      |         uint8
../UI/diskmgr.h:106:9: error: 'Uint32' does not name a type; did you mean 'uint32'?
  106 |         Uint32 signal;
      |         ^~~~~~
      |         uint32
../UI/audio.cpp: In member function 'void Audio::Play()':
../UI/audio.cpp:267:13: error: 'device_id' was not declared in this scope
  267 |         if (device_id > 0) {
      |             ^~~~~~~~~
../UI/diskmgr.cpp: In constructor 'DiskManager::DiskManager()':
../UI/diskmgr.cpp:42:9: error: 'wp_list' was not declared in this scope; did you mean 'va_list'?
   42 |         wp_list = NULL;
      |         ^~~~~~~
      |         va_list
../UI/converter.cpp: In member function 'void Converter::SjisToUtf(const char*, char*)':
../UI/converter.cpp:97:9: error: 'Uint16' was not declared in this scope; did you mean 'uint16'?
   97 |         Uint16 high;
      |         ^~~~~~
      |         uint16
../UI/converter.cpp:98:15: error: expected ';' before 'low'
   98 |         Uint16 low;
      |               ^~~~
      |               ;
../UI/converter.cpp:99:15: error: expected ';' before 'ucs'
   99 |         Uint16 ucs;
      |               ^~~~
      |               ;
../UI/diskmgr.cpp:43:9: error: 'signal' was not declared in this scope; did you mean 'sigval'?
   43 |         signal = 0;
      |         ^~~~~~
      |         sigval
../UI/diskmgr.cpp:44:9: error: 'path' was not declared in this scope
   44 |         path[0] = '\0';
      |         ^~~~
../UI/converter.cpp:105:17: error: 'ucs' was not declared in this scope
  105 |                 ucs = 0;
      |                 ^~~
../UI/diskmgr.cpp:45:9: error: 'dir' was not declared in this scope; did you mean 'div'?
   45 |         dir[0] = '\0';
      |         ^~~
      |         div
../UI/audio.cpp:269:25: error: 'SDL_PauseAudioDevice' was not declared in this scope
  269 |                         SDL_PauseAudioDevice(device_id, 0);
      |                         ^~~~~~~~~~~~~~~~~~~~
../UI/converter.cpp:109:17: error: 'high' was not declared in this scope
  109 |                 high = (Uint16)*sjis++;
      |                 ^~~~
../UI/converter.cpp:125:25: error: 'low' was not declared in this scope; did you mean 'pow'?
  125 |                         low = (Uint16)*sjis++;
      |                         ^~~
      |                         pow
../UI/diskmgr.cpp:46:9: error: 'state_path' was not declared in this scope
   46 |         state_path[0] = '\0';
      |         ^~~~~~~~~~
../UI/audio.cpp: In member function 'void Audio::Stop()':
../UI/audio.cpp:283:13: error: 'device_id' was not declared in this scope
  283 |         if (device_id > 0) {
      |             ^~~~~~~~~
../UI/converter.cpp:141:31: error: 'sjis_table' was not declared in this scope
  141 |                         ucs = sjis_table[high * 0xc0 + low];
      |                               ^~~~~~~~~~
../UI/audio.cpp:285:25: error: 'SDL_PauseAudioDevice' was not declared in this scope
  285 |                         SDL_PauseAudioDevice(device_id, 1);
      |                         ^~~~~~~~~~~~~~~~~~~~
../UI/converter.cpp:176:25: error: 'low' was not declared in this scope; did you mean 'pow'?
  176 |                         low = (ucs & 0x3f);
      |                         ^~~
      |                         pow
../UI/converter.cpp:194:17: error: 'low' was not declared in this scope; did you mean 'pow'?
  194 |                 low = (ucs & 0x3f);
      |                 ^~~
      |                 pow
../UI/audio.cpp: In member function 'void Audio::Reset()':
../UI/audio.cpp:311:13: error: 'sample_buffer' was not declared in this scope; did you mean 'sample_per'?
  311 |         if (sample_buffer != NULL) {
      |             ^~~~~~~~~~~~~
      |             sample_per
../UI/converter.cpp: In member function 'void Converter::UtfToSjis(const char*, char*)':
../UI/converter.cpp:209:9: error: 'Uint16' was not declared in this scope; did you mean 'uint16'?
  209 |         Uint16 high;
      |         ^~~~~~
      |         uint16
../UI/converter.cpp:210:15: error: expected ';' before 'low'
  210 |         Uint16 low;
      |               ^~~~
      |               ;
../UI/converter.cpp:211:15: error: expected ';' before 'ucs'
  211 |         Uint16 ucs;
      |               ^~~~
      |               ;
../UI/audio.cpp: In member function 'int Audio::GetFreeSamples()':
../UI/audio.cpp:331:21: error: 'audio_sem' was not declared in this scope
  331 |         SDL_SemWait(audio_sem);
      |                     ^~~~~~~~~
../UI/converter.cpp:216:17: error: 'ucs' was not declared in this scope
  216 |                 ucs = (Uint16)*utf++;
      |                 ^~~
../UI/converter.cpp:225:33: error: 'low' was not declared in this scope; did you mean 'pow'?
  225 |                                 low = (Uint16)*utf++;
      |                                 ^~~
      |                                 pow
../UI/audio.cpp:331:9: error: 'SDL_SemWait' was not declared in this scope
  331 |         SDL_SemWait(audio_sem);
      |         ^~~~~~~~~~~
../UI/converter.cpp:239:33: error: 'high' was not declared in this scope
  239 |                                 high = (Uint16)*utf++;
      |                                 ^~~~
../UI/diskmgr.cpp: In member function 'bool DiskManager::Open(const char*, int)':
../UI/diskmgr.cpp:111:40: error: 'path' was not declared in this scope
  111 |         if (strlen(filename) >= sizeof(path)) {
      |                                        ^~~~
../UI/audio.cpp:333:13: error: 'sample_buffer' was not declared in this scope; did you mean 'sample_per'?
  333 |         if (sample_buffer != NULL) {
      |             ^~~~~~~~~~~~~
      |             sample_per
../UI/converter.cpp:244:33: error: 'low' was not declared in this scope; did you mean 'pow'?
  244 |                                 low = (Uint16)*utf++;
      |                                 ^~~
      |                                 pow
../UI/audio.cpp:335:29: error: 'device_spec' was not declared in this scope
  335 |                 samples /= (device_spec.channels * sizeof(Sint16));
      |                             ^~~~~~~~~~~
../UI/converter.cpp:261:21: error: 'ucs_table' was not declared in this scope
  261 |                 if (ucs_table[ucs] != 0) {
      |                     ^~~~~~~~~
../UI/converter.cpp: At global scope:
../UI/converter.cpp:299:7: error: 'Uint16' does not name a type; did you mean 'uint16'?
  299 | const Uint16 Converter::sjis_table[0x30 * 0xc0] = {
      |       ^~~~~~
      |       uint16
../UI/diskmgr.cpp:114:16: error: 'path' was not declared in this scope
  114 |         strcpy(path, filename);
      |                ^~~~
../UI/audio.cpp:335:59: error: 'Sint16' was not declared in this scope; did you mean 'uint16'?
  335 |                 samples /= (device_spec.channels * sizeof(Sint16));
      |                                                           ^~~~~~
      |                                                           uint16
../UI/audio.cpp:343:9: error: 'SDL_SemPost' was not declared in this scope
  343 |         SDL_SemPost(audio_sem);
      |         ^~~~~~~~~~~
../UI/audio.cpp: At global scope:
../UI/audio.cpp:352:5: error: 'int Audio::Write' is not a static data member of 'class Audio'
  352 | int Audio::Write(Uint8 *stream, int len)
      |     ^~~~~
../UI/diskmgr.cpp:117:16: error: 'dir' was not declared in this scope; did you mean 'div'?
  117 |         strcpy(dir, path);
      |                ^~~
      |                div
../UI/audio.cpp:352:18: error: 'Uint8' was not declared in this scope; did you mean 'uint8'?
  352 | int Audio::Write(Uint8 *stream, int len)
      |                  ^~~~~
      |                  uint8
../UI/audio.cpp:352:25: error: 'stream' was not declared in this scope; did you mean 'strcat'?
  352 | int Audio::Write(Uint8 *stream, int len)
      |                         ^~~~~~
      |                         strcat
../UI/audio.cpp:352:33: error: expected primary-expression before 'int'
  352 | int Audio::Write(Uint8 *stream, int len)
      |                                 ^~~
../UI/audio.cpp:352:40: error: expression list treated as compound expression in initializer [-fpermissive]
  352 | int Audio::Write(Uint8 *stream, int len)
      |                                        ^
../UI/audio.cpp:442:44: error: 'Uint8' has not been declared
  442 | void Audio::CommonCallback(void *userdata, Uint8 *stream, int len)
      |                                            ^~~~~
../UI/audio.cpp:457:6: error: variable or field 'Callback' declared void
  457 | void Audio::Callback(Uint8 *stream, int len)
      |      ^~~~~
../UI/audio.cpp:457:22: error: 'Uint8' was not declared in this scope; did you mean 'uint8'?
  457 | void Audio::Callback(Uint8 *stream, int len)
      |                      ^~~~~
      |                      uint8
../UI/audio.cpp:457:29: error: 'stream' was not declared in this scope; did you mean 'strcat'?
  457 | void Audio::Callback(Uint8 *stream, int len)
      |                             ^~~~~~
      |                             strcat
../UI/audio.cpp:457:37: error: expected primary-expression before 'int'
  457 | void Audio::Callback(Uint8 *stream, int len)
      |                                     ^~~
../UI/diskmgr.cpp: In member function 'bool DiskManager::Open(int)':
../UI/diskmgr.cpp:158:39: error: 'path' was not declared in this scope
  158 |         vm->open_disk(drive, (_TCHAR*)path, current_bank);
      |                                       ^~~~
../UI/diskmgr.cpp: In member function 'void DiskManager::Close()':
../UI/diskmgr.cpp:180:17: error: 'SDL_free' was not declared in this scope
  180 |                 SDL_free(name_list);
      |                 ^~~~~~~~
../UI/diskmgr.cpp:185:13: error: 'wp_list' was not declared in this scope; did you mean 'va_list'?
  185 |         if (wp_list != NULL) {
      |             ^~~~~~~
      |             va_list
gmake: *** [makefile:41: ../UI/audio.o] Error 1
gmake: *** Waiting for unfinished jobs....
gmake: *** [makefile:41: ../UI/converter.o] Error 1
../UI/diskmgr.cpp:186:17: error: 'SDL_free' was not declared in this scope
  186 |                 SDL_free(wp_list);
      |                 ^~~~~~~~
../UI/diskmgr.cpp: In member function 'bool DiskManager::IsProtect()':
../UI/diskmgr.cpp:239:21: error: 'wp_list' was not declared in this scope; did you mean 'va_list'?
  239 |                 if (wp_list[current_bank] != 0x00) {
      |                     ^~~~~~~
      |                     va_list
../UI/diskmgr.cpp: In member function 'const char* DiskManager::GetDir()':
../UI/diskmgr.cpp:315:16: error: 'dir' was not declared in this scope; did you mean 'div'?
  315 |         return dir;
      |                ^~~
      |                div
../UI/diskmgr.cpp: In member function 'const char* DiskManager::GetFileName()':
../UI/diskmgr.cpp:332:22: error: 'dir' was not declared in this scope; did you mean 'div'?
  332 |         len = strlen(dir);
      |                      ^~~
      |                      div
../UI/diskmgr.cpp:333:9: error: 'SDL_assert' was not declared in this scope
  333 |         SDL_assert(len > 0);
      |         ^~~~~~~~~~
../UI/diskmgr.cpp:334:27: error: 'path' was not declared in this scope
  334 |         SDL_assert(strlen(path) > len);
      |                           ^~~~
../UI/diskmgr.cpp: In member function 'bool DiskManager::SetBank(int)':
../UI/diskmgr.cpp:366:47: error: 'path' was not declared in this scope
  366 |                 vm->open_disk(drive, (_TCHAR*)path, bank);
      |                                               ^~~~
../UI/diskmgr.cpp: In member function 'void DiskManager::ProcessMgr()':
../UI/diskmgr.cpp:390:55: error: 'path' was not declared in this scope
  390 |                         vm->open_disk(drive, (_TCHAR*)path, current_bank);
      |                                                       ^~~~
../UI/diskmgr.cpp: In member function 'void DiskManager::Load(FILEIO*)':
../UI/diskmgr.cpp:408:20: error: 'state_path' was not declared in this scope
  408 |         fio->Fread(state_path, 1, sizeof(state_path));
      |                    ^~~~~~~~~~
In file included from ../UI/app.cpp:16:
../UI/emu_sdl.h:44:26: error: '_MAX_PATH' was not declared in this scope
   44 |         _TCHAR base_path[_MAX_PATH * 3];
      |                          ^~~~~~~~~
../UI/emu_sdl.h:46:26: error: '_MAX_PATH' was not declared in this scope
   46 |         _TCHAR bios_path[_MAX_PATH * 3];
      |                          ^~~~~~~~~
In file included from ../ePC-8801MA/emu.h:14,
                 from ../UI/app.cpp:17:
../ePC-8801MA/config.h:96:33: error: '_MAX_PATH' was not declared in this scope
   96 |         _TCHAR initial_disk_dir[_MAX_PATH];
      |                                 ^~~~~~~~~
../ePC-8801MA/config.h:97:54: error: '_MAX_PATH' was not declared in this scope
   97 |         _TCHAR recent_disk_path[MAX_FD][MAX_HISTORY][_MAX_PATH];
      |                                                      ^~~~~~~~~
../ePC-8801MA/config.h:104:33: error: '_MAX_PATH' was not declared in this scope
  104 |         _TCHAR initial_tape_dir[_MAX_PATH];
      |                                 ^~~~~~~~~
../UI/diskmgr.cpp: In member function 'void DiskManager::Save(FILEIO*)':
../UI/diskmgr.cpp:431:21: error: 'path' was not declared in this scope
  431 |         fio->Fwrite(path, 1, sizeof(path));
      |                     ^~~~
../ePC-8801MA/config.h:105:46: error: '_MAX_PATH' was not declared in this scope
  105 |         _TCHAR recent_tape_path[MAX_HISTORY][_MAX_PATH];
      |                                              ^~~~~~~~~
../UI/diskmgr.cpp: In member function 'bool DiskManager::Analyze()':
../UI/diskmgr.cpp:445:9: error: 'Uint8' was not declared in this scope; did you mean 'uint8'?
  445 |         Uint8 header[0x2b0];
      |         ^~~~~
      |         uint8
../UI/diskmgr.cpp:446:9: error: 'Uint32' was not declared in this scope; did you mean 'uint32'?
  446 |         Uint32 offset;
      |         ^~~~~~
      |         uint32
../UI/diskmgr.cpp:447:15: error: expected ';' before 'add'
  447 |         Uint32 add;
      |               ^~~~
      |               ;
../UI/diskmgr.cpp:452:15: error: expected ';' before 'trkofs'
  452 |         Uint32 trkofs;
      |               ^~~~~~~
      |               ;
../ePC-8801MA/config.h:140:31: error: '_MAX_PATH' was not declared in this scope
  140 |         _TCHAR fmgen_dll_path[_MAX_PATH];
      |                               ^~~~~~~~~
../UI/diskmgr.cpp:455:23: error: 'path' was not declared in this scope
  455 |         if (fio.Fopen(path, FILEIO_READ_BINARY) == false) {
      |                       ^~~~
../UI/diskmgr.cpp:460:36: error: 'path' was not declared in this scope
  460 |         readonly = fio.IsProtected(path);
      |                                    ^~~~
../UI/diskmgr.cpp:464:9: error: 'offset' was not declared in this scope; did you mean 'offset_t'?
  464 |         offset = 0;
      |         ^~~~~~
      |         offset_t
In file included from ../ePC-8801MA/vm/fmgen/opna.h:11,
                 from ../ePC-8801MA/vm/fmsound.h:16,
                 from ../UI/app.cpp:21:
../ePC-8801MA/vm/fmgen/fmgen.h:188:29: error: variable or field '__stdcall' declared void
  188 |                 friend void __stdcall FM_NextPhase(Operator* op);
      |                             ^~~~~~~~~
../ePC-8801MA/vm/fmgen/fmgen.h:188:29: error: expected ';' at end of member declaration
  188 |                 friend void __stdcall FM_NextPhase(Operator* op);
      |                             ^~~~~~~~~
      |                                      ;
../ePC-8801MA/vm/fmgen/fmgen.h:188:39: error: ISO C++ forbids declaration of 'FM_NextPhase' with no type [-fpermissive]
  188 |                 friend void __stdcall FM_NextPhase(Operator* op);
      |                                       ^~~~~~~~~~~~
../UI/diskmgr.cpp:470:31: error: 'header' was not declared in this scope
  470 |                 if (fio.Fread(header, 1, sizeof(header)) != sizeof(header)) {
      |                               ^~~~~~
../UI/diskmgr.cpp:476:22: error: 'header' was not declared in this scope
  476 |                 if ((header[0x23] != 0x00) ||
      |                      ^~~~~~
../UI/diskmgr.cpp:491:17: error: 'header' was not declared in this scope
  491 |                 header[0x10] = 0x00;
      |                 ^~~~~~
../UI/diskmgr.cpp:496:17: error: 'add' was not declared in this scope
  496 |                 add = (Uint32)header[0x1f];
      |                 ^~~
../UI/diskmgr.cpp:506:25: error: 'trkofs' was not declared in this scope
  506 |                         trkofs = (Uint32)(header[0x20 + track * 4 + 3]);
      |                         ^~~~~~
../UI/diskmgr.cpp:536:28: error: 'SDL_malloc' was not declared in this scope; did you mean 'malloc'?
  536 |         name_list = (char*)SDL_malloc(len);
      |                            ^~~~~~~~~~
      |                            malloc
../UI/diskmgr.cpp:541:9: error: 'wp_list' was not declared in this scope; did you mean 'va_list'?
  541 |         wp_list = (Uint8*)SDL_malloc(num_of_banks);
      |         ^~~~~~~
      |         va_list
../UI/diskmgr.cpp:541:26: error: expected primary-expression before ')' token
  541 |         wp_list = (Uint8*)SDL_malloc(num_of_banks);
      |                          ^
In file included from ../UI/app.cpp:22:
../ePC-8801MA/vm/pc8801/pc88.h:238:30: error: '_MAX_PATH' was not declared in this scope
  238 |         _TCHAR rec_file_path[_MAX_PATH];
      |                              ^~~~~~~~~
../UI/diskmgr.cpp:543:17: error: 'SDL_free' was not declared in this scope
  543 |                 SDL_free(name_list);
      |                 ^~~~~~~~
In file included from ../UI/app.cpp:23:
../UI/setting.h:102:9: error: 'Uint32' does not name a type; did you mean 'uint32'?
  102 |         Uint32 GetDip();
      |         ^~~~~~
      |         uint32
../UI/setting.h:106:9: error: 'Uint32' does not name a type; did you mean 'uint32'?
  106 |         Uint32 GetSystems();
      |         ^~~~~~
      |         uint32
../UI/diskmgr.cpp:557:27: error: 'header' was not declared in this scope
  557 |                 fio.Fread(header, 1, sizeof(header));
      |                           ^~~~~~
../UI/setting.h:122:9: error: 'Uint8' does not name a type; did you mean 'uint8'?
  122 |         Uint8 GetBrightness();
      |         ^~~~~
      |         uint8
../UI/setting.h:124:28: error: 'Uint8' has not been declared
  124 |         void SetBrightness(Uint8 bri);
      |                            ^~~~~
../UI/setting.h:126:9: error: 'Uint8' does not name a type; did you mean 'uint8'?
  126 |         Uint8 GetMenuAlpha();
      |         ^~~~~
      |         uint8
../UI/setting.h:140:9: error: 'Uint8' does not name a type; did you mean 'uint8'?
  140 |         Uint8 GetStatusAlpha();
      |         ^~~~~
      |         uint8
../UI/setting.h:142:29: error: 'Uint8' has not been declared
  142 |         void SetStatusAlpha(Uint8 alpha);
      |                             ^~~~~
../UI/setting.h:184:9: error: 'Uint8' does not name a type; did you mean 'uint8'?
  184 |         Uint8 GetSoftKeyAlpha();
      |         ^~~~~
      |         uint8
../UI/setting.h:186:30: error: 'Uint8' has not been declared
  186 |         void SetSoftKeyAlpha(Uint8 alpha);
      |                              ^~~~~
../UI/diskmgr.cpp:570:17: error: 'add' was not declared in this scope
  570 |                 add = (Uint32)header[0x1f];
      |                 ^~~
../UI/setting.h:188:9: error: 'Uint32' does not name a type; did you mean 'uint32'?
  188 |         Uint32 GetSoftKeyTime();
      |         ^~~~~~
      |         uint32
../UI/setting.h:190:29: error: 'Uint32' has not been declared
  190 |         void SetSoftKeyTime(Uint32 ms);
      |                             ^~~~~~
../UI/setting.h:204:9: error: 'Uint32' does not name a type; did you mean 'uint32'?
  204 |         Uint32 GetMouseTime();
      |         ^~~~~~
      |         uint32
../UI/setting.h:206:27: error: 'Uint32' has not been declared
  206 |         void SetMouseTime(Uint32 ms);
      |                           ^~~~~~
../UI/setting.h:212:9: error: 'Uint32' does not name a type; did you mean 'uint32'?
  212 |         Uint32 GetJoystickToKey(int button);
      |         ^~~~~~
      |         uint32
../UI/setting.h:214:43: error: 'Uint32' has not been declared
  214 |         void SetJoystickToKey(int button, Uint32 data);
      |                                           ^~~~~~
../UI/setting.h:236:26: error: '_MAX_PATH' was not declared in this scope
  236 |         char setting_dir[_MAX_PATH * 3];
      |                          ^~~~~~~~~
../UI/setting.h:238:27: error: '_MAX_PATH' was not declared in this scope
  238 |         char setting_path[_MAX_PATH * 3];
      |                           ^~~~~~~~~
../UI/setting.h:244:9: error: 'Uint8' does not name a type; did you mean 'uint8'?
  244 |         Uint8 brightness;
      |         ^~~~~
      |         uint8
../UI/setting.h:250:9: error: 'Uint8' does not name a type; did you mean 'uint8'?
  250 |         Uint8 softkey_alpha;
      |         ^~~~~
      |         uint8
../UI/setting.h:252:9: error: 'Uint32' does not name a type; did you mean 'uint32'?
  252 |         Uint32 softkey_time;
      |         ^~~~~~
      |         uint32
../UI/setting.h:260:9: error: 'Uint32' does not name a type; did you mean 'uint32'?
  260 |         Uint32 mouse_time;
      |         ^~~~~~
      |         uint32
../UI/setting.h:266:9: error: 'Uint8' does not name a type; did you mean 'uint8'?
  266 |         Uint8 status_alpha;
      |         ^~~~~
      |         uint8
In file included from ../UI/app.cpp:24:
../UI/platform.h:26:19: error: 'SDL_Window' has not been declared
   26 |         bool Init(SDL_Window *window);
      |                   ^~~~~~~~~~
../UI/platform.h:32:48: error: 'Uint32' has not been declared
   32 |         const char* FindFirst(const char *dir, Uint32 *info);
      |                                                ^~~~~~
../UI/platform.h:34:30: error: 'Uint32' has not been declared
   34 |         const char* FindNext(Uint32 *info);
      |                              ^~~~~~
../UI/platform.h:36:20: error: 'Uint32' has not been declared
   36 |         bool IsDir(Uint32 info);
      |                    ^~~~~~
../UI/platform.h:46:21: error: 'SDL_Window' has not been declared
   46 |         void MsgBox(SDL_Window *window, const char *string);
      |                     ^~~~~~~~~~
In file included from ../UI/app.cpp:25:
../UI/video.h:26:19: error: 'SDL_Window' has not been declared
   26 |         bool Init(SDL_Window *win);
      |                   ^~~~~~~~~~
../UI/video.h:46:9: error: 'Uint32' does not name a type; did you mean 'uint32'?
   46 |         Uint32* GetMenuFrame();
      |         ^~~~~~
      |         uint32
../UI/video.h:50:9: error: 'Uint32' does not name a type; did you mean 'uint32'?
   50 |         Uint32* GetSoftKeyFrame();
      |         ^~~~~~
      |         uint32
../UI/video.h:62:27: error: 'Uint32' has not been declared
   62 |         void SetFrameRate(Uint32 rate);
      |                           ^~~~~~
../UI/video.h:64:28: error: 'Uint32' has not been declared
   64 |         void SetSystemInfo(Uint32 info);
      |                            ^~~~~~
../UI/video.h:102:27: error: 'SDL_Texture' has not been declared
  102 |         void CopyFrameBuf(SDL_Texture *texture, Uint32 *src, int height, int top = 0);
      |                           ^~~~~~~~~~~
../UI/video.h:102:49: error: 'Uint32' has not been declared
  102 |         void CopyFrameBuf(SDL_Texture *texture, Uint32 *src, int height, int top = 0);
      |                                                 ^~~~~~
gmake: *** [makefile:41: ../UI/diskmgr.o] Error 1
../UI/video.h:136:9: error: 'SDL_Rect' does not name a type
  136 |         SDL_Rect draw_rect;
      |         ^~~~~~~~
../UI/video.h:138:9: error: 'SDL_Rect' does not name a type
  138 |         SDL_Rect status_rect;
      |         ^~~~~~~~
../UI/video.h:140:9: error: 'SDL_Rect' does not name a type
  140 |         SDL_Rect clear_rect[2];
      |         ^~~~~~~~
../UI/video.h:142:9: error: 'Uint8' does not name a type; did you mean 'uint8'?
  142 |         Uint8 brightness;
      |         ^~~~~
      |         uint8
../UI/video.h:146:9: error: 'Uint8' does not name a type; did you mean 'uint8'?
  146 |         Uint8 softkey_mod;
      |         ^~~~~
      |         uint8
../UI/video.h:150:9: error: 'Uint32' does not name a type; did you mean 'uint32'?
  150 |         Uint32 status_alpha;
      |         ^~~~~~
      |         uint32
../UI/video.h:166:9: error: 'Uint32' does not name a type; did you mean 'uint32'?
  166 |         Uint32 frame_rate[2];
      |         ^~~~~~
      |         uint32
../UI/video.h:170:9: error: 'Uint32' does not name a type; did you mean 'uint32'?
  170 |         Uint32 system_info[2];
      |         ^~~~~~
      |         uint32
../UI/video.h:182:9: error: 'SDL_Window' does not name a type
  182 |         SDL_Window *window;
      |         ^~~~~~~~~~
../UI/video.h:184:9: error: 'SDL_Renderer' does not name a type
  184 |         SDL_Renderer *renderer;
      |         ^~~~~~~~~~~~
../UI/video.h:186:9: error: 'SDL_Texture' does not name a type
  186 |         SDL_Texture *draw_texture;
      |         ^~~~~~~~~~~
../UI/video.h:188:9: error: 'SDL_Texture' does not name a type
  188 |         SDL_Texture *menu_texture;
      |         ^~~~~~~~~~~
../UI/video.h:190:9: error: 'SDL_Texture' does not name a type
  190 |         SDL_Texture *softkey_texture;
      |         ^~~~~~~~~~~
../UI/video.h:192:9: error: 'SDL_Texture' does not name a type
  192 |         SDL_Texture *status_texture;
      |         ^~~~~~~~~~~
In file included from ../UI/app.cpp:26:
../UI/audio.h:60:19: error: 'Uint8' has not been declared
   60 |         int Write(Uint8 *stream, int len);
      |                   ^~~~~
../UI/audio.h:62:52: error: 'Uint8' has not been declared
   62 |         static void CommonCallback(void *userdata, Uint8 *stream, int len);
      |                                                    ^~~~~
../UI/audio.h:64:23: error: 'Uint8' has not been declared
   64 |         void Callback(Uint8 *steram, int len);
      |                       ^~~~~
../UI/audio.h:70:9: error: 'SDL_sem' does not name a type
   70 |         SDL_sem *audio_sem;
      |         ^~~~~~~
../UI/audio.h:76:9: error: 'SDL_AudioDeviceID' does not name a type
   76 |         SDL_AudioDeviceID device_id;
      |         ^~~~~~~~~~~~~~~~~
../UI/audio.h:78:9: error: 'SDL_AudioSpec' does not name a type
   78 |         SDL_AudioSpec device_spec;
      |         ^~~~~~~~~~~~~
../UI/audio.h:84:9: error: 'Uint8' does not name a type; did you mean 'uint8'?
   84 |         Uint8 *sample_buffer;
      |         ^~~~~
      |         uint8
In file included from ../UI/app.cpp:27:
../UI/font.h:26:19: error: 'SDL_Window' has not been declared
   26 |         bool Init(SDL_Window *win);
      |                   ^~~~~~~~~~
../UI/font.h:32:9: error: 'Uint8' does not name a type; did you mean 'uint8'?
   32 |         Uint8 GetROMVersion(int offset);
      |         ^~~~~
      |         uint8
../UI/font.h:36:23: error: 'Uint32' has not been declared
   36 |         void DrawRect(Uint32 *buf, SDL_Rect *rect, Uint32 fore, Uint32 back);
      |                       ^~~~~~
../UI/font.h:36:36: error: 'SDL_Rect' has not been declared
   36 |         void DrawRect(Uint32 *buf, SDL_Rect *rect, Uint32 fore, Uint32 back);
      |                                    ^~~~~~~~
../UI/font.h:36:52: error: 'Uint32' has not been declared
   36 |         void DrawRect(Uint32 *buf, SDL_Rect *rect, Uint32 fore, Uint32 back);
      |                                                    ^~~~~~
../UI/font.h:36:65: error: 'Uint32' has not been declared
   36 |         void DrawRect(Uint32 *buf, SDL_Rect *rect, Uint32 fore, Uint32 back);
      |                                                                 ^~~~~~
../UI/font.h:38:27: error: 'Uint32' has not been declared
   38 |         void DrawFillRect(Uint32 *buf, SDL_Rect *rect, Uint32 fore);
      |                           ^~~~~~
../UI/font.h:38:40: error: 'SDL_Rect' has not been declared
   38 |         void DrawFillRect(Uint32 *buf, SDL_Rect *rect, Uint32 fore);
      |                                        ^~~~~~~~
../UI/font.h:38:56: error: 'Uint32' has not been declared
   38 |         void DrawFillRect(Uint32 *buf, SDL_Rect *rect, Uint32 fore);
      |                                                        ^~~~~~
../UI/font.h:40:27: error: 'Uint32' has not been declared
   40 |         void DrawHalfRect(Uint32 *buf, SDL_Rect *rect, Uint32 fore, Uint32 back);
      |                           ^~~~~~
../UI/font.h:40:40: error: 'SDL_Rect' has not been declared
   40 |         void DrawHalfRect(Uint32 *buf, SDL_Rect *rect, Uint32 fore, Uint32 back);
      |                                        ^~~~~~~~
../UI/font.h:40:56: error: 'Uint32' has not been declared
   40 |         void DrawHalfRect(Uint32 *buf, SDL_Rect *rect, Uint32 fore, Uint32 back);
      |                                                        ^~~~~~
../UI/font.h:40:69: error: 'Uint32' has not been declared
   40 |         void DrawHalfRect(Uint32 *buf, SDL_Rect *rect, Uint32 fore, Uint32 back);
      |                                                                     ^~~~~~
../UI/font.h:42:31: error: 'Uint32' has not been declared
   42 |         void DrawSjisCenterOr(Uint32 *buf, SDL_Rect *rect, const char *string, Uint32 fore);
      |                               ^~~~~~
../UI/font.h:42:44: error: 'SDL_Rect' has not been declared
   42 |         void DrawSjisCenterOr(Uint32 *buf, SDL_Rect *rect, const char *string, Uint32 fore);
      |                                            ^~~~~~~~
../UI/font.h:42:80: error: 'Uint32' has not been declared
   42 |         void DrawSjisCenterOr(Uint32 *buf, SDL_Rect *rect, const char *string, Uint32 fore);
      |                                                                                ^~~~~~
../UI/font.h:44:29: error: 'Uint32' has not been declared
   44 |         void DrawSjisLeftOr(Uint32 *buf, SDL_Rect *rect, const char *string, Uint32 fore);
      |                             ^~~~~~
../UI/font.h:44:42: error: 'SDL_Rect' has not been declared
   44 |         void DrawSjisLeftOr(Uint32 *buf, SDL_Rect *rect, const char *string, Uint32 fore);
      |                                          ^~~~~~~~
../UI/font.h:44:78: error: 'Uint32' has not been declared
   44 |         void DrawSjisLeftOr(Uint32 *buf, SDL_Rect *rect, const char *string, Uint32 fore);
      |                                                                              ^~~~~~
../UI/font.h:46:29: error: 'Uint32' has not been declared
   46 |         void DrawSjisBoldOr(Uint32 *buf, SDL_Rect *rect, const char *string, Uint32 fore);
      |                             ^~~~~~
../UI/font.h:46:42: error: 'SDL_Rect' has not been declared
   46 |         void DrawSjisBoldOr(Uint32 *buf, SDL_Rect *rect, const char *string, Uint32 fore);
      |                                          ^~~~~~~~
../UI/font.h:46:78: error: 'Uint32' has not been declared
   46 |         void DrawSjisBoldOr(Uint32 *buf, SDL_Rect *rect, const char *string, Uint32 fore);
      |                                                                              ^~~~~~
../UI/font.h:48:30: error: 'Uint32' has not been declared
   48 |         void DrawSoftKeyRect(Uint32 *buf, SDL_Rect *rect, Uint32 fore, Uint32 inside);
      |                              ^~~~~~
../UI/font.h:48:43: error: 'SDL_Rect' has not been declared
   48 |         void DrawSoftKeyRect(Uint32 *buf, SDL_Rect *rect, Uint32 fore, Uint32 inside);
      |                                           ^~~~~~~~
../UI/font.h:48:59: error: 'Uint32' has not been declared
   48 |         void DrawSoftKeyRect(Uint32 *buf, SDL_Rect *rect, Uint32 fore, Uint32 inside);
      |                                                           ^~~~~~
../UI/font.h:48:72: error: 'Uint32' has not been declared
   48 |         void DrawSoftKeyRect(Uint32 *buf, SDL_Rect *rect, Uint32 fore, Uint32 inside);
      |                                                                        ^~~~~~
../UI/font.h:50:28: error: 'Uint32' has not been declared
   50 |         void DrawSoftKey1x(Uint32 *buf, SDL_Rect *rect, const char *string, Uint32 fore);
      |                            ^~~~~~
../UI/font.h:50:41: error: 'SDL_Rect' has not been declared
   50 |         void DrawSoftKey1x(Uint32 *buf, SDL_Rect *rect, const char *string, Uint32 fore);
      |                                         ^~~~~~~~
../UI/font.h:50:77: error: 'Uint32' has not been declared
   50 |         void DrawSoftKey1x(Uint32 *buf, SDL_Rect *rect, const char *string, Uint32 fore);
      |                                                                             ^~~~~~
../UI/font.h:52:31: error: 'Uint32' has not been declared
   52 |         void DrawSoftKey1xSub(Uint32 *buf, const char *string, Uint32 fore);
      |                               ^~~~~~
../UI/font.h:52:64: error: 'Uint32' has not been declared
   52 |         void DrawSoftKey1xSub(Uint32 *buf, const char *string, Uint32 fore);
      |                                                                ^~~~~~
../UI/font.h:54:28: error: 'Uint32' has not been declared
   54 |         void DrawSoftKey4x(Uint32 *buf, SDL_Rect *rect, const char *string, Uint32 fore);
      |                            ^~~~~~
../UI/font.h:54:41: error: 'SDL_Rect' has not been declared
   54 |         void DrawSoftKey4x(Uint32 *buf, SDL_Rect *rect, const char *string, Uint32 fore);
      |                                         ^~~~~~~~
../UI/font.h:54:77: error: 'Uint32' has not been declared
   54 |         void DrawSoftKey4x(Uint32 *buf, SDL_Rect *rect, const char *string, Uint32 fore);
      |                                                                             ^~~~~~
../UI/font.h:56:32: error: 'Uint32' has not been declared
   56 |         void DrawAnk9xCenterOr(Uint32 *buf, SDL_Rect *rect, const char *string, Uint32 fore);
      |                                ^~~~~~
../UI/font.h:56:45: error: 'SDL_Rect' has not been declared
   56 |         void DrawAnk9xCenterOr(Uint32 *buf, SDL_Rect *rect, const char *string, Uint32 fore);
      |                                             ^~~~~~~~
../UI/font.h:56:81: error: 'Uint32' has not been declared
   56 |         void DrawAnk9xCenterOr(Uint32 *buf, SDL_Rect *rect, const char *string, Uint32 fore);
      |                                                                                 ^~~~~~
../UI/font.h:58:26: error: 'Uint32' has not been declared
   58 |         void DrawAnkHalf(Uint32 *buf, const char *string, Uint32 fore, Uint32 back);
      |                          ^~~~~~
../UI/font.h:58:59: error: 'Uint32' has not been declared
   58 |         void DrawAnkHalf(Uint32 *buf, const char *string, Uint32 fore, Uint32 back);
      |                                                           ^~~~~~
../UI/font.h:58:72: error: 'Uint32' has not been declared
   58 |         void DrawAnkHalf(Uint32 *buf, const char *string, Uint32 fore, Uint32 back);
      |                                                                        ^~~~~~
../UI/font.h:60:29: error: 'Uint32' has not been declared
   60 |         void DrawAnkQuarter(Uint32 *buf, char ch, Uint32 fore, Uint32 back);
      |                             ^~~~~~
../UI/font.h:60:51: error: 'Uint32' has not been declared
   60 |         void DrawAnkQuarter(Uint32 *buf, char ch, Uint32 fore, Uint32 back);
      |                                                   ^~~~~~
../UI/font.h:60:64: error: 'Uint32' has not been declared
   60 |         void DrawAnkQuarter(Uint32 *buf, char ch, Uint32 fore, Uint32 back);
      |                                                                ^~~~~~
../UI/font.h:66:9: error: 'SDL_Window' does not name a type
   66 |         SDL_Window *window;
      |         ^~~~~~~~~~
../UI/font.h:72:24: error: 'Uint8' has not been declared
   72 |         int GetAnkAddr(Uint8 ank);
      |                        ^~~~~
../UI/font.h:74:28: error: 'Uint8' has not been declared
   74 |         int GetAnkHalfAddr(Uint8 ank);
      |                            ^~~~~
../UI/font.h:76:31: error: 'Uint8' has not been declared
   76 |         int GetAnkQuarterAddr(Uint8 ank);
      |                               ^~~~~
../UI/font.h:78:26: error: 'Uint16' has not been declared
   78 |         int GetKanjiAddr(Uint16 sjis);
      |                          ^~~~~~
../UI/font.h:80:9: error: 'Uint32' does not name a type; did you mean 'uint32'?
   80 |         Uint32 SjisToJis(Uint32 sjis);
      |         ^~~~~~
      |         uint32
../UI/font.h:82:9: error: 'Uint32' does not name a type; did you mean 'uint32'?
   82 |         Uint32 JisToOffset(Uint32 jis);
      |         ^~~~~~
      |         uint32
../UI/font.h:86:9: error: 'Uint8' does not name a type; did you mean 'uint8'?
   86 |         Uint8 kanji_rom[0x40000];
      |         ^~~~~
      |         uint8
../UI/font.h:88:9: error: 'Uint8' does not name a type; did you mean 'uint8'?
   88 |         Uint8 rom_version[4];
      |         ^~~~~
      |         uint8
../UI/font.h:90:26: error: '_MAX_PATH' was not declared in this scope
   90 |         char rom_message[_MAX_PATH * 3];
      |                          ^~~~~~~~~
In file included from ../UI/input.h:16,
                 from ../UI/app.cpp:28:
../UI/softkey.h:65:17: error: 'SDL_Scancode' does not name a type
   65 |                 SDL_Scancode code;
      |                 ^~~~~~~~~~~~
../UI/softkey.h:84:20: error: 'Uint32' has not been declared
   84 |         void Shift(Uint32 shift);
      |                    ^~~~~~
../UI/softkey.h:133:9: error: 'Uint32' does not name a type; did you mean 'uint32'?
  133 |         Uint32 *frame_buf;
      |         ^~~~~~
      |         uint32
../UI/softkey.h:135:9: error: 'SDL_Rect' does not name a type
  135 |         SDL_Rect key_rect;
      |         ^~~~~~~~
../UI/input.h:62:27: error: 'SDL_Scancode' has not been declared
   62 |         bool GetKeyStatus(SDL_Scancode code);
      |                           ^~~~~~~~~~~~
../UI/input.h:64:26: error: 'Uint32' has not been declared
   64 |         void GetJoystick(Uint32 *status);
      |                          ^~~~~~
../UI/input.h:70:35: error: 'SDL_Scancode' has not been declared
   70 |         void OnKeyDown(bool soft, SDL_Scancode code);
      |                                   ^~~~~~~~~~~~
../UI/input.h:72:33: error: 'SDL_Scancode' has not been declared
   72 |         void OnKeyUp(bool soft, SDL_Scancode code);
      |                                 ^~~~~~~~~~~~
../UI/input.h:74:28: error: 'SDL_Event' has not been declared
   74 |         void OnMouseMotion(SDL_Event *e);
      |                            ^~~~~~~~~
../UI/input.h:76:32: error: 'SDL_Event' has not been declared
   76 |         void OnMouseButtonDown(SDL_Event *e);
      |                                ^~~~~~~~~
../UI/input.h:78:30: error: 'SDL_Event' has not been declared
   78 |         void OnMouseButtonUp(SDL_Event *e);
      |                              ^~~~~~~~~
../UI/input.h:80:27: error: 'SDL_Event' has not been declared
   80 |         void OnMouseWheel(SDL_Event *e);
      |                           ^~~~~~~~~
../UI/input.h:84:27: error: 'SDL_Event' has not been declared
   84 |         void OnFingerDown(SDL_Event *e);
      |                           ^~~~~~~~~
../UI/input.h:86:25: error: 'SDL_Event' has not been declared
   86 |         void OnFingerUp(SDL_Event *e);
      |                         ^~~~~~~~~
../UI/input.h:88:29: error: 'SDL_Event' has not been declared
   88 |         void OnFingerMotion(SDL_Event *e);
      |                             ^~~~~~~~~
../UI/input.h:96:9: error: 'Uint32' does not name a type; did you mean 'uint32'?
   96 |         Uint32 GetKeyShift();
      |         ^~~~~~
      |         uint32
../UI/input.h:124:9: error: 'Uint32' does not name a type; did you mean 'uint32'?
  124 |         Uint32 key_tick;
      |         ^~~~~~
      |         uint32
../UI/input.h:126:9: error: 'Uint32' does not name a type; did you mean 'uint32'?
  126 |         Uint32 key_shift;
      |         ^~~~~~
      |         uint32
../UI/input.h:128:9: error: 'Uint32' does not name a type; did you mean 'uint32'?
  128 |         Uint32 menu_delay;
      |         ^~~~~~
      |         uint32
../UI/input.h:130:9: error: 'SDL_Joystick' does not name a type
  130 |         SDL_Joystick **joystick;
      |         ^~~~~~~~~~~~
../UI/input.h:134:9: error: 'Uint32' does not name a type; did you mean 'uint32'?
  134 |         Uint32 joystick_prev;
      |         ^~~~~~
      |         uint32
../UI/input.h:136:9: error: 'Uint8' does not name a type; did you mean 'uint8'?
  136 |         Uint8 key_status[0x100];
      |         ^~~~~
      |         uint8
../UI/input.h:138:9: error: 'Uint8' does not name a type; did you mean 'uint8'?
  138 |         Uint8 key_buf[0x100];
      |         ^~~~~
      |         uint8
../UI/input.h:140:9: error: 'Uint32' does not name a type; did you mean 'uint32'?
  140 |         Uint32 key_table[0x120];
      |         ^~~~~~
      |         uint32
../UI/input.h:142:9: error: 'Uint32' does not name a type; did you mean 'uint32'?
  142 |         Uint32 key_soft_make_tick[0x120];
      |         ^~~~~~
      |         uint32
../UI/input.h:146:22: error: 'Uint32' does not name a type; did you mean 'uint32'?
  146 |         static const Uint32 key_base[0x120];
      |                      ^~~~~~
      |                      uint32
../UI/input.h:148:22: error: 'Uint32' does not name a type; did you mean 'uint32'?
  148 |         static const Uint32 joystick_button[15 * 2];
      |                      ^~~~~~
      |                      uint32
In file included from ../UI/app.cpp:29:
../UI/converter.h:38:9: error: 'Uint16' does not name a type; did you mean 'uint16'?
   38 |         Uint16 *ucs_table;
      |         ^~~~~~
      |         uint16
../UI/converter.h:40:22: error: 'Uint16' does not name a type; did you mean 'uint16'?
   40 |         static const Uint16 sjis_table[0x30 * 0xc0];
      |                      ^~~~~~
      |                      uint16
In file included from ../UI/app.cpp:30:
../UI/menu.h:120:24: error: 'SDL_Event' has not been declared
  120 |         void OnKeyDown(SDL_Event *e);
      |                        ^~~~~~~~~
../UI/menu.h:122:28: error: 'SDL_Event' has not been declared
  122 |         void OnMouseMotion(SDL_Event *e);
      |                            ^~~~~~~~~
../UI/menu.h:124:32: error: 'SDL_Event' has not been declared
  124 |         void OnMouseButtonDown(SDL_Event *e);
      |                                ^~~~~~~~~
../UI/menu.h:126:30: error: 'SDL_Event' has not been declared
  126 |         void OnMouseButtonUp(SDL_Event *e);
      |                              ^~~~~~~~~
../UI/menu.h:128:27: error: 'SDL_Event' has not been declared
  128 |         void OnMouseWheel(SDL_Event *e);
      |                           ^~~~~~~~~
../UI/menu.h:132:27: error: 'SDL_Event' has not been declared
  132 |         void OnFingerDown(SDL_Event *e);
      |                           ^~~~~~~~~
../UI/menu.h:134:25: error: 'SDL_Event' has not been declared
  134 |         void OnFingerUp(SDL_Event *e);
      |                         ^~~~~~~~~
../UI/menu.h:136:29: error: 'SDL_Event' has not been declared
  136 |         void OnFingerMotion(SDL_Event *e);
      |                             ^~~~~~~~~
../UI/menu.h:162:23: error: '_MAX_PATH' was not declared in this scope
  162 |         char file_dir[_MAX_PATH * 3];
      |                       ^~~~~~~~~
../UI/menu.h:164:26: error: '_MAX_PATH' was not declared in this scope
  164 |         char file_target[_MAX_PATH * 3];
      |                          ^~~~~~~~~
../UI/menu.h:166:26: error: '_MAX_PATH' was not declared in this scope
  166 |         char file_expect[_MAX_PATH * 3];
      |                          ^~~~~~~~~
../UI/menu.h:176:22: error: 'Uint32' does not name a type; did you mean 'uint32'?
  176 |         static const Uint32 joytest_table[15 * 2];
      |                      ^~~~~~
      |                      uint32
In file included from ../UI/app.cpp:32:
../UI/diskmgr.h:88:19: error: '_MAX_PATH' was not declared in this scope
   88 |         char path[_MAX_PATH * 3];
      |                   ^~~~~~~~~
../UI/diskmgr.h:90:18: error: '_MAX_PATH' was not declared in this scope
   90 |         char dir[_MAX_PATH * 3];
      |                  ^~~~~~~~~
../UI/diskmgr.h:92:25: error: '_MAX_PATH' was not declared in this scope
   92 |         char state_path[_MAX_PATH * 3];
      |                         ^~~~~~~~~
../UI/diskmgr.h:100:9: error: 'Uint8' does not name a type; did you mean 'uint8'?
  100 |         Uint8 *wp_list;
      |         ^~~~~
      |         uint8
../UI/diskmgr.h:106:9: error: 'Uint32' does not name a type; did you mean 'uint32'?
  106 |         Uint32 signal;
      |         ^~~~~~
      |         uint32
In file included from ../UI/app.cpp:33:
../UI/tapemgr.h:62:19: error: '_MAX_PATH' was not declared in this scope
   62 |         char path[_MAX_PATH * 3];
      |                   ^~~~~~~~~
../UI/tapemgr.h:64:18: error: '_MAX_PATH' was not declared in this scope
   64 |         char dir[_MAX_PATH * 3];
      |                  ^~~~~~~~~
../UI/tapemgr.h:66:25: error: '_MAX_PATH' was not declared in this scope
   66 |         char state_path[_MAX_PATH * 3];
      |                         ^~~~~~~~~
In file included from ../UI/app.cpp:37:
../UI/app.h:78:22: error: 'SDL_Scancode' has not been declared
   78 |         void OnKeyVM(SDL_Scancode code);
      |                      ^~~~~~~~~~~~
../UI/app.h:80:23: error: 'Uint8' has not been declared
   80 |         void GetKeyVM(Uint8 *buf);
      |                       ^~~~~
../UI/app.h:82:9: error: 'Uint32' does not name a type; did you mean 'uint32'?
   82 |         Uint32 GetKeyCode(Uint32 port, Uint32 bit);
      |         ^~~~~~
      |         uint32
../UI/app.h:108:9: error: 'Uint32' does not name a type; did you mean 'uint32'?
  108 |         Uint32 GetAppVersion();
      |         ^~~~~~
      |         uint32
../UI/app.h:132:19: error: 'SDL_Event' has not been declared
  132 |         void Poll(SDL_Event *e);
      |                   ^~~~~~~~~
../UI/app.h:134:23: error: 'SDL_Event' has not been declared
  134 |         void OnWindow(SDL_Event *e);
      |                       ^~~~~~~~~
../UI/app.h:136:24: error: 'SDL_Event' has not been declared
  136 |         void OnKeyDown(SDL_Event *e);
      |                        ^~~~~~~~~
../UI/app.h:138:22: error: 'SDL_Event' has not been declared
  138 |         void OnKeyUp(SDL_Event *e);
      |                      ^~~~~~~~~
../UI/app.h:140:25: error: 'SDL_Event' has not been declared
  140 |         void OnDropFile(SDL_Event *e);
      |                         ^~~~~~~~~
../UI/app.h:154:9: error: 'SDL_sem' does not name a type
  154 |         SDL_sem *vm_sem;
      |         ^~~~~~~
../UI/app.h:158:9: error: 'SDL_Window' does not name a type
  158 |         SDL_Window *window;
      |         ^~~~~~~~~~
../UI/app.h:218:9: error: 'Uint32' does not name a type; did you mean 'uint32'?
  218 |         Uint32 draw_tick[0x40];
      |         ^~~~~~
      |         uint32
../UI/app.h:220:9: error: 'Uint32' does not name a type; did you mean 'uint32'?
  220 |         Uint32 draw_tick_count;
      |         ^~~~~~
      |         uint32
../UI/app.h:226:9: error: 'Uint32' does not name a type; did you mean 'uint32'?
  226 |         Uint32 mouse_tick;
      |         ^~~~~~
      |         uint32
../UI/app.h:230:9: error: 'Uint32' does not name a type; did you mean 'uint32'?
  230 |         Uint32 system_info;
      |         ^~~~~~
      |         uint32
../UI/app.h:234:25: error: '_MAX_PATH' was not declared in this scope
  234 |         char state_path[_MAX_PATH * 3];
      |                         ^~~~~~~~~
../UI/app.h:242:9: error: 'Uint8' does not name a type; did you mean 'uint8'?
  242 |         Uint8 *audio_param;
      |         ^~~~~
      |         uint8
../UI/app.cpp: In constructor 'App::App()':
../UI/app.cpp:87:20: error: 'SDL_arraysize' was not declared in this scope
   87 |         SDL_assert(SDL_arraysize(diskmgr) == MAX_DRIVE);
      |                    ^~~~~~~~~~~~~
../UI/app.cpp:87:9: error: 'SDL_assert' was not declared in this scope
   87 |         SDL_assert(SDL_arraysize(diskmgr) == MAX_DRIVE);
      |         ^~~~~~~~~~
../UI/app.cpp:90:9: error: 'vm_sem' was not declared in this scope
   90 |         vm_sem = NULL;
      |         ^~~~~~
../UI/app.cpp:92:9: error: 'window' was not declared in this scope; did you mean 'OnWindow'?
   92 |         window = NULL;
      |         ^~~~~~
      |         OnWindow
../UI/app.cpp:125:16: error: 'draw_tick' was not declared in this scope
  125 |         memset(draw_tick, 0, sizeof(draw_tick));
      |                ^~~~~~~~~
../UI/app.cpp:126:9: error: 'draw_tick_count' was not declared in this scope; did you mean 'draw_tick_point'?
  126 |         draw_tick_count = 0;
      |         ^~~~~~~~~~~~~~~
      |         draw_tick_point
../UI/app.cpp:130:9: error: 'mouse_tick' was not declared in this scope
  130 |         mouse_tick = 0;
      |         ^~~~~~~~~~
../UI/app.cpp:133:9: error: 'system_info' was not declared in this scope
  133 |         system_info = 0;
      |         ^~~~~~~~~~~
../UI/app.cpp:136:9: error: 'state_path' was not declared in this scope
  136 |         state_path[0] = '\0';
      |         ^~~~~~~~~~
../UI/app.cpp:139:9: error: 'audio_param' was not declared in this scope
  139 |         audio_param = NULL;
      |         ^~~~~~~~~~~
../UI/app.cpp: In member function 'bool App::Init()':
../UI/app.cpp:172:16: error: 'SDL_GetPlatform' was not declared in this scope; did you mean 'GetPlatform'?
  172 |         name = SDL_GetPlatform();
      |                ^~~~~~~~~~~~~~~
      |                GetPlatform
../UI/app.cpp:184:17: error: 'vm_sem' was not declared in this scope
  184 |                 vm_sem = SDL_CreateSemaphore(1);
      |                 ^~~~~~
../UI/app.cpp:184:26: error: 'SDL_CreateSemaphore' was not declared in this scope
  184 |                 vm_sem = SDL_CreateSemaphore(1);
      |                          ^~~~~~~~~~~~~~~~~~~
../UI/app.cpp:199:21: error: 'SDL_HINT_RENDER_SCALE_QUALITY' was not declared in this scope
  199 |         SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, setting->GetScaleQuality());
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../UI/app.cpp:199:9: error: 'SDL_SetHint' was not declared in this scope
  199 |         SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, setting->GetScaleQuality());
      |         ^~~~~~~~~~~
../UI/app.cpp:212:9: error: 'window' was not declared in this scope; did you mean 'OnWindow'?
  212 |         window = SDL_CreateWindow(  GetAppTitle(),
      |         ^~~~~~
      |         OnWindow
../UI/app.cpp:213:65: error: 'SDL_WINDOWPOS_UNDEFINED' was not declared in this scope
  213 |                                                                 SDL_WINDOWPOS_UNDEFINED,
      |                                                                 ^~~~~~~~~~~~~~~~~~~~~~~
../UI/app.cpp:217:65: error: 'SDL_WINDOW_SHOWN' was not declared in this scope
  217 |                                                                 SDL_WINDOW_SHOWN | SDL_WINDOW_INPUT_FOCUS | SDL_WINDOW_MOUSE_FOCUS);
      |                                                                 ^~~~~~~~~~~~~~~~
../UI/app.cpp:217:84: error: 'SDL_WINDOW_INPUT_FOCUS' was not declared in this scope
  217 |                                                                 SDL_WINDOW_SHOWN | SDL_WINDOW_INPUT_FOCUS | SDL_WINDOW_MOUSE_FOCUS);
      |                                                                                    ^~~~~~~~~~~~~~~~~~~~~~
../UI/app.cpp:217:109: error: 'SDL_WINDOW_MOUSE_FOCUS' was not declared in this scope
  217 |                                                                 SDL_WINDOW_SHOWN | SDL_WINDOW_INPUT_FOCUS | SDL_WINDOW_MOUSE_FOCUS);
      |                                                                                                             ^~~~~~~~~~~~~~~~~~~~~~
../UI/app.cpp:212:18: error: 'SDL_CreateWindow' was not declared in this scope
  212 |         window = SDL_CreateWindow(  GetAppTitle(),
      |                  ^~~~~~~~~~~~~~~~
../UI/app.cpp:224:24: error: 'SDL_DROPFILE' was not declared in this scope
  224 |         SDL_EventState(SDL_DROPFILE, SDL_ENABLE);
      |                        ^~~~~~~~~~~~
../UI/app.cpp:224:38: error: 'SDL_ENABLE' was not declared in this scope
  224 |         SDL_EventState(SDL_DROPFILE, SDL_ENABLE);
      |                                      ^~~~~~~~~~
../UI/app.cpp:224:9: error: 'SDL_EventState' was not declared in this scope
  224 |         SDL_EventState(SDL_DROPFILE, SDL_ENABLE);
      |         ^~~~~~~~~~~~~~
../UI/app.cpp:247:9: error: 'audio_param' was not declared in this scope
  247 |         audio_param = (Uint8*)SDL_malloc(sizeof(Audio::OpenParam));
      |         ^~~~~~~~~~~
../UI/app.cpp:247:24: error: 'Uint8' was not declared in this scope; did you mean 'uint8'?
  247 |         audio_param = (Uint8*)SDL_malloc(sizeof(Audio::OpenParam));
      |                        ^~~~~
      |                        uint8
../UI/app.cpp:247:30: error: expected primary-expression before ')' token
  247 |         audio_param = (Uint8*)SDL_malloc(sizeof(Audio::OpenParam));
      |                              ^
../UI/app.cpp:333:9: error: 'SDL_GetWindowSize' was not declared in this scope
  333 |         SDL_GetWindowSize(window, &width, &height);
      |         ^~~~~~~~~~~~~~~~~
../UI/app.cpp:337:27: error: 'SDL_arraysize' was not declared in this scope
  337 |         for (loop=0; loop<SDL_arraysize(power_level); loop++) {
      |                           ^~~~~~~~~~~~~
../UI/app.cpp:352:9: error: 'mouse_tick' was not declared in this scope
  352 |         mouse_tick = SDL_GetTicks();
      |         ^~~~~~~~~~
../UI/app.cpp:352:22: error: 'SDL_GetTicks' was not declared in this scope
  352 |         mouse_tick = SDL_GetTicks();
      |                      ^~~~~~~~~~~~
../UI/app.cpp:353:9: error: 'SDL_ShowCursor' was not declared in this scope
  353 |         SDL_ShowCursor(SDL_ENABLE);
      |         ^~~~~~~~~~~~~~
../UI/app.cpp:356:9: error: 'system_info' was not declared in this scope
  356 |         system_info = setting->GetSystems();
      |         ^~~~~~~~~~~
../UI/app.cpp:356:32: error: 'class Setting' has no member named 'GetSystems'; did you mean 'GetSystemMode'?
  356 |         system_info = setting->GetSystems();
      |                                ^~~~~~~~~~
      |                                GetSystemMode
../UI/app.cpp: In member function 'void App::Deinit()':
../UI/app.cpp:444:13: error: 'audio_param' was not declared in this scope
  444 |         if (audio_param != NULL) {
      |             ^~~~~~~~~~~
../UI/app.cpp:445:17: error: 'SDL_free' was not declared in this scope
  445 |                 SDL_free(audio_param);
      |                 ^~~~~~~~
../UI/app.cpp:470:13: error: 'window' was not declared in this scope; did you mean 'OnWindow'?
  470 |         if (window != NULL) {
      |             ^~~~~~
      |             OnWindow
../UI/app.cpp:471:17: error: 'SDL_DestroyWindow' was not declared in this scope
  471 |                 SDL_DestroyWindow(window);
      |                 ^~~~~~~~~~~~~~~~~
../UI/app.cpp:489:13: error: 'vm_sem' was not declared in this scope
  489 |         if (vm_sem != NULL) {
      |             ^~~~~~
../UI/app.cpp:490:17: error: 'SDL_DestroySemaphore' was not declared in this scope
  490 |                 SDL_DestroySemaphore(vm_sem);
      |                 ^~~~~~~~~~~~~~~~~~~~
../UI/app.cpp: In member function 'Platform* App::GetPlatform()':
../UI/app.cpp:501:9: error: 'SDL_assert' was not declared in this scope
  501 |         SDL_assert(platform != NULL);
      |         ^~~~~~~~~~
../UI/app.cpp: In member function 'Setting* App::GetSetting()':
../UI/app.cpp:511:9: error: 'SDL_assert' was not declared in this scope
  511 |         SDL_assert(setting != NULL);
      |         ^~~~~~~~~~
../UI/app.cpp: In member function 'Video* App::GetVideo()':
../UI/app.cpp:521:9: error: 'SDL_assert' was not declared in this scope
  521 |         SDL_assert(video != NULL);
      |         ^~~~~~~~~~
../UI/app.cpp: In member function 'Font* App::GetFont()':
../UI/app.cpp:531:9: error: 'SDL_assert' was not declared in this scope
  531 |         SDL_assert(font != NULL);
      |         ^~~~~~~~~~
../UI/app.cpp: In member function 'Input* App::GetInput()':
../UI/app.cpp:541:9: error: 'SDL_assert' was not declared in this scope
  541 |         SDL_assert(input != NULL);
      |         ^~~~~~~~~~
../UI/app.cpp: In member function 'Converter* App::GetConverter()':
../UI/app.cpp:551:9: error: 'SDL_assert' was not declared in this scope
  551 |         SDL_assert(converter != NULL);
      |         ^~~~~~~~~~
../UI/app.cpp: In member function 'Menu* App::GetMenu()':
../UI/app.cpp:561:9: error: 'SDL_assert' was not declared in this scope
  561 |         SDL_assert(menu != NULL);
      |         ^~~~~~~~~~
../UI/app.cpp: In member function 'EMU_SDL* App::GetWrapper()':
../UI/app.cpp:571:9: error: 'SDL_assert' was not declared in this scope
  571 |         SDL_assert(wrapper != NULL);
      |         ^~~~~~~~~~
../UI/app.cpp: In member function 'EMU* App::GetEmu()':
../UI/app.cpp:581:9: error: 'SDL_assert' was not declared in this scope
  581 |         SDL_assert(emu != NULL);
      |         ^~~~~~~~~~
../UI/app.cpp: In member function 'DiskManager** App::GetDiskManager()':
../UI/app.cpp:591:9: error: 'SDL_assert' was not declared in this scope
  591 |         SDL_assert(diskmgr[MAX_DRIVE - 1] != NULL);
      |         ^~~~~~~~~~
../UI/app.cpp: In member function 'TapeManager* App::GetTapeManager()':
../UI/app.cpp:601:9: error: 'SDL_assert' was not declared in this scope
  601 |         SDL_assert(tapemgr != NULL);
      |         ^~~~~~~~~~
../UI/app.cpp: In member function 'void App::Run()':
../UI/app.cpp:612:9: error: 'SDL_Event' was not declared in this scope
  612 |         SDL_Event e;
      |         ^~~~~~~~~
../UI/app.cpp:615:9: error: 'Uint32' was not declared in this scope; did you mean 'uint32'?
  615 |         Uint32 begin;
      |         ^~~~~~
      |         uint32
../UI/app.cpp:616:15: error: expected ';' before 'add'
  616 |         Uint32 add;
      |               ^~~~
      |               ;
../UI/app.cpp:617:15: error: expected ';' before 'total'
  617 |         Uint32 total;
      |               ^~~~~~
      |               ;
../UI/app.cpp:618:15: error: expected ';' before 'diff'
  618 |         Uint32 diff;
      |               ^~~~~
      |               ;
../UI/app.cpp:621:9: error: 'Uint8' was not declared in this scope; did you mean 'uint8'?
  621 |         Uint8 *buffer;
      |         ^~~~~
      |         uint8
../UI/app.cpp:621:16: error: 'buffer' was not declared in this scope; did you mean 'setbuffer'?
  621 |         Uint8 *buffer;
      |                ^~~~~~
      |                setbuffer
../UI/app.cpp:629:9: error: 'begin' was not declared in this scope
  629 |         begin = SDL_GetTicks();
      |         ^~~~~
../UI/app.cpp:629:17: error: 'SDL_GetTicks' was not declared in this scope
  629 |         begin = SDL_GetTicks();
      |                 ^~~~~~~~~~~~
../UI/app.cpp:633:9: error: 'add' was not declared in this scope
  633 |         add = (Uint32)ms_per_frame;
      |         ^~~
../UI/app.cpp:634:9: error: 'total' was not declared in this scope
  634 |         total = 0;
      |         ^~~~~
../UI/app.cpp:671:54: error: 'e' was not declared in this scope
  671 |                                 ret = SDL_WaitEvent(&e);
      |                                                      ^
../UI/app.cpp:671:39: error: 'SDL_WaitEvent' was not declared in this scope
  671 |                                 ret = SDL_WaitEvent(&e);
      |                                       ^~~~~~~~~~~~~
../UI/app.cpp:676:69: error: 'e' was not declared in this scope
  676 |                                         ret = SDL_WaitEventTimeout(&e, SLEEP_MENU);
      |                                                                     ^
../UI/app.cpp:676:47: error: 'SDL_WaitEventTimeout' was not declared in this scope
  676 |                                         ret = SDL_WaitEventTimeout(&e, SLEEP_MENU);
      |                                               ^~~~~~~~~~~~~~~~~~~~
../UI/app.cpp:680:69: error: 'e' was not declared in this scope
  680 |                                         ret = SDL_WaitEventTimeout(&e, SLEEP_POWERDOWN);
      |                                                                     ^
../UI/app.cpp:680:47: error: 'SDL_WaitEventTimeout' was not declared in this scope
  680 |                                         ret = SDL_WaitEventTimeout(&e, SLEEP_POWERDOWN);
      |                                               ^~~~~~~~~~~~~~~~~~~~
../UI/app.cpp:686:39: error: 'e' was not declared in this scope
  686 |                                 Poll(&e);
      |                                       ^
../UI/app.cpp:690:39: error: 'SDL_PollEvent' was not declared in this scope
  690 |                                 ret = SDL_PollEvent(&e);
      |                                       ^~~~~~~~~~~~~
../UI/app.cpp:707:25: error: 'draw_tick_count' was not declared in this scope; did you mean 'draw_tick_point'?
  707 |                         draw_tick_count = 0;
      |                         ^~~~~~~~~~~~~~~
      |                         draw_tick_point
../UI/app.cpp:717:25: error: 'diff' was not declared in this scope
  717 |                         diff = 0;
      |                         ^~~~
../UI/app.cpp:721:25: error: 'diff' was not declared in this scope
  721 |                         diff = (SDL_GetTicks() - begin) << MS_SHIFT;
      |                         ^~~~
../UI/app.cpp:727:25: error: 'diff' was not declared in this scope
  727 |                         diff = (FORCE_SYNC << MS_SHIFT) + 1;
      |                         ^~~~
../UI/app.cpp:730:21: error: 'diff' was not declared in this scope
  730 |                 if (diff < 0x80000000) {
      |                     ^~~~
../UI/app.cpp:746:21: error: 'diff' was not declared in this scope
  746 |                 if (diff < 0x80000000) {
      |                     ^~~~
../UI/app.cpp:754:41: error: expected primary-expression before ')' token
  754 |                         buffer = (Uint8*)evmgr->create_sound32(&extra);
      |                                         ^
../UI/app.cpp:772:49: error: 'SDL_Delay' was not declared in this scope
  772 |                                                 SDL_Delay(1);
      |                                                 ^~~~~~~~~
../UI/app.cpp:802:46: error: 'e' was not declared in this scope
  802 |                         ret = SDL_PollEvent(&e);
      |                                              ^
../UI/app.cpp:802:31: error: 'SDL_PollEvent' was not declared in this scope
  802 |                         ret = SDL_PollEvent(&e);
      |                               ^~~~~~~~~~~~~
../UI/app.cpp:823:25: error: 'diff' was not declared in this scope
  823 |                         diff = 0;
      |                         ^~~~
../UI/app.cpp:827:25: error: 'diff' was not declared in this scope
  827 |                         diff = (SDL_GetTicks() - begin) << MS_SHIFT;
      |                         ^~~~
../UI/app.cpp:833:30: error: 'diff' was not declared in this scope
  833 |                         if ((diff <= total) || (run >= SKIP_FRAMES_MAX)) {
      |                              ^~~~
../UI/app.cpp:850:49: error: 'draw_tick' was not declared in this scope
  850 |                                                 draw_tick[draw_tick_point] = SDL_GetTicks();
      |                                                 ^~~~~~~~~
../UI/app.cpp:852:72: error: 'SDL_arraysize' was not declared in this scope
  852 |                                                 if (draw_tick_point >= SDL_arraysize(draw_tick)) {
      |                                                                        ^~~~~~~~~~~~~
../UI/app.cpp:855:53: error: 'draw_tick_count' was not declared in this scope; did you mean 'draw_tick_point'?
  855 |                                                 if (draw_tick_count < SDL_arraysize(draw_tick)) {
      |                                                     ^~~~~~~~~~~~~~~
      |                                                     draw_tick_point
../UI/app.cpp:855:71: error: 'SDL_arraysize' was not declared in this scope
  855 |                                                 if (draw_tick_count < SDL_arraysize(draw_tick)) {
      |                                                                       ^~~~~~~~~~~~~
../UI/app.cpp:872:29: error: 'diff' was not declared in this scope
  872 |                         if (diff < total) {
      |                             ^~~~
../UI/app.cpp:873:61: error: 'e' was not declared in this scope
  873 |                                 ret = SDL_WaitEventTimeout(&e, (total - diff) >> MS_SHIFT);
      |                                                             ^
../UI/app.cpp:873:39: error: 'SDL_WaitEventTimeout' was not declared in this scope
  873 |                                 ret = SDL_WaitEventTimeout(&e, (total - diff) >> MS_SHIFT);
      |                                       ^~~~~~~~~~~~~~~~~~~~
../UI/app.cpp:879:46: error: 'SDL_PollEvent' was not declared in this scope
  879 |                                         ret= SDL_PollEvent(&e);
      |                                              ^~~~~~~~~~~~~
../UI/app.cpp:894:47: error: 'mouse_tick' was not declared in this scope
  894 |                 if ((Uint32)(SDL_GetTicks() - mouse_tick) >= setting->GetMouseTime()) {
      |                                               ^~~~~~~~~~
../UI/app.cpp:894:71: error: 'class Setting' has no member named 'GetMouseTime'; did you mean 'SetMouseTime'?
  894 |                 if ((Uint32)(SDL_GetTicks() - mouse_tick) >= setting->GetMouseTime()) {
      |                                                                       ^~~~~~~~~~~~
      |                                                                       SetMouseTime
../UI/app.cpp:895:38: error: 'class Setting' has no member named 'GetMouseTime'; did you mean 'SetMouseTime'?
  895 |                         if (setting->GetMouseTime() < MOUSE_INFINITE_TIME) {
      |                                      ^~~~~~~~~~~~
      |                                      SetMouseTime
../UI/app.cpp:896:37: error: 'SDL_GetMouseState' was not declared in this scope
  896 |                                 if (SDL_GetMouseState(NULL, NULL) == 0) {
      |                                     ^~~~~~~~~~~~~~~~~
../UI/app.cpp:897:60: error: 'SDL_QUERY' was not declared in this scope
  897 |                                         if (SDL_ShowCursor(SDL_QUERY) == SDL_ENABLE) {
      |                                                            ^~~~~~~~~
../UI/app.cpp:897:45: error: 'SDL_ShowCursor' was not declared in this scope
  897 |                                         if (SDL_ShowCursor(SDL_QUERY) == SDL_ENABLE) {
      |                                             ^~~~~~~~~~~~~~
../UI/app.cpp:897:74: error: 'SDL_ENABLE' was not declared in this scope
  897 |                                         if (SDL_ShowCursor(SDL_QUERY) == SDL_ENABLE) {
      |                                                                          ^~~~~~~~~~
../UI/app.cpp:898:64: error: 'SDL_DISABLE' was not declared in this scope; did you mean 'SS_DISABLE'?
  898 |                                                 SDL_ShowCursor(SDL_DISABLE);
      |                                                                ^~~~~~~~~~~
      |                                                                SS_DISABLE
../UI/app.cpp:910:25: error: 'SDL_Delay' was not declared in this scope
  910 |                         SDL_Delay(0);
      |                         ^~~~~~~~~
../UI/app.cpp: In member function 'void App::Draw()':
../UI/app.cpp:924:9: error: 'Uint32' was not declared in this scope; did you mean 'uint32'?
  924 |         Uint32 info;
      |         ^~~~~~
      |         uint32
../UI/app.cpp:927:15: error: expected ';' before 'urate'
  927 |         Uint32 urate;
      |               ^~~~~~
      |               ;
../UI/app.cpp:930:9: error: 'info' was not declared in this scope
  930 |         info = setting->GetSystems();
      |         ^~~~
../UI/app.cpp:930:25: error: 'class Setting' has no member named 'GetSystems'; did you mean 'GetSystemMode'?
  930 |         info = setting->GetSystems();
      |                         ^~~~~~~~~~
      |                         GetSystemMode
../UI/app.cpp:937:9: error: 'urate' was not declared in this scope; did you mean 'rate'?
  937 |         urate = 0;
      |         ^~~~~
      |         rate
../UI/app.cpp:939:39: error: 'draw_tick' was not declared in this scope
  939 |                 point = SDL_arraysize(draw_tick) - draw_tick_count;
      |                                       ^~~~~~~~~
../UI/app.cpp:939:25: error: 'SDL_arraysize' was not declared in this scope
  939 |                 point = SDL_arraysize(draw_tick) - draw_tick_count;
      |                         ^~~~~~~~~~~~~
../UI/app.cpp:939:52: error: 'draw_tick_count' was not declared in this scope; did you mean 'draw_tick_point'?
  939 |                 point = SDL_arraysize(draw_tick) - draw_tick_count;
      |                                                    ^~~~~~~~~~~~~~~
      |                                                    draw_tick_point
../UI/app.cpp: In member function 'void App::PowerMng()':
../UI/app.cpp:972:9: error: 'SDL_PowerState' was not declared in this scope
  972 |         SDL_PowerState state;
      |         ^~~~~~~~~~~~~~
../UI/app.cpp:977:35: error: 'SDL_arraysize' was not declared in this scope
  977 |                 for (loop=0; loop<SDL_arraysize(power_level); loop++) {
      |                                   ^~~~~~~~~~~~~
../UI/app.cpp:998:9: error: 'state' was not declared in this scope; did you mean 'static'?
  998 |         state = SDL_GetPowerInfo(NULL, &pct);
      |         ^~~~~
      |         static
../UI/app.cpp:998:17: error: 'SDL_GetPowerInfo' was not declared in this scope
  998 |         state = SDL_GetPowerInfo(NULL, &pct);
      |                 ^~~~~~~~~~~~~~~~
../UI/app.cpp:1000:22: error: 'SDL_POWERSTATE_ON_BATTERY' was not declared in this scope
 1000 |         if (state != SDL_POWERSTATE_ON_BATTERY) {
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~
../UI/app.cpp:1002:35: error: 'SDL_arraysize' was not declared in this scope
 1002 |                 for (loop=0; loop<SDL_arraysize(power_level); loop++) {
      |                                   ^~~~~~~~~~~~~
../UI/app.cpp:1010:38: error: 'SDL_arraysize' was not declared in this scope
 1010 |                 if (power_pointer == SDL_arraysize(power_level)) {
      |                                      ^~~~~~~~~~~~~
../UI/app.cpp:1017:27: error: 'SDL_arraysize' was not declared in this scope
 1017 |         for (loop=0; loop<SDL_arraysize(power_level); loop++) {
      |                           ^~~~~~~~~~~~~
../UI/app.cpp:1020:16: error: 'SDL_arraysize' was not declared in this scope
 1020 |         avg /= SDL_arraysize(power_level);
      |                ^~~~~~~~~~~~~
../UI/app.cpp: At global scope:
../UI/app.cpp:1081:6: error: variable or field 'Poll' declared void
 1081 | void App::Poll(SDL_Event *e)
      |      ^~~
../UI/app.cpp:1081:16: error: 'SDL_Event' was not declared in this scope
 1081 | void App::Poll(SDL_Event *e)
      |                ^~~~~~~~~
../UI/app.cpp:1081:27: error: 'e' was not declared in this scope
 1081 | void App::Poll(SDL_Event *e)
      |                           ^
../UI/app.cpp:1292:6: error: variable or field 'OnWindow' declared void
 1292 | void App::OnWindow(SDL_Event *e)
      |      ^~~
../UI/app.cpp:1292:20: error: 'SDL_Event' was not declared in this scope
 1292 | void App::OnWindow(SDL_Event *e)
      |                    ^~~~~~~~~
../UI/app.cpp:1292:31: error: 'e' was not declared in this scope
 1292 | void App::OnWindow(SDL_Event *e)
      |                               ^
../UI/app.cpp:1421:6: error: variable or field 'OnKeyDown' declared void
 1421 | void App::OnKeyDown(SDL_Event *e)
      |      ^~~
../UI/app.cpp:1421:21: error: 'SDL_Event' was not declared in this scope
 1421 | void App::OnKeyDown(SDL_Event *e)
      |                     ^~~~~~~~~
../UI/app.cpp:1421:32: error: 'e' was not declared in this scope
 1421 | void App::OnKeyDown(SDL_Event *e)
      |                                ^
../UI/app.cpp:1495:6: error: variable or field 'OnKeyUp' declared void
 1495 | void App::OnKeyUp(SDL_Event *e)
      |      ^~~
../UI/app.cpp:1495:19: error: 'SDL_Event' was not declared in this scope
 1495 | void App::OnKeyUp(SDL_Event *e)
      |                   ^~~~~~~~~
../UI/app.cpp:1495:30: error: 'e' was not declared in this scope
 1495 | void App::OnKeyUp(SDL_Event *e)
      |                              ^
../UI/app.cpp:1545:6: error: variable or field 'OnDropFile' declared void
 1545 | void App::OnDropFile(SDL_Event *e)
      |      ^~~
../UI/app.cpp:1545:22: error: 'SDL_Event' was not declared in this scope
 1545 | void App::OnDropFile(SDL_Event *e)
      |                      ^~~~~~~~~
../UI/app.cpp:1545:33: error: 'e' was not declared in this scope
 1545 | void App::OnDropFile(SDL_Event *e)
      |                                 ^
../UI/app.cpp:1628:6: error: variable or field 'OnKeyVM' declared void
 1628 | void App::OnKeyVM(SDL_Scancode code)
      |      ^~~
../UI/app.cpp:1628:19: error: 'SDL_Scancode' was not declared in this scope
 1628 | void App::OnKeyVM(SDL_Scancode code)
      |                   ^~~~~~~~~~~~
../UI/app.cpp:1645:6: error: variable or field 'GetKeyVM' declared void
 1645 | void App::GetKeyVM(Uint8 *buf)
      |      ^~~
../UI/app.cpp:1645:20: error: 'Uint8' was not declared in this scope; did you mean 'uint8'?
 1645 | void App::GetKeyVM(Uint8 *buf)
      |                    ^~~~~
      |                    uint8
../UI/app.cpp:1645:27: error: 'buf' was not declared in this scope
 1645 | void App::GetKeyVM(Uint8 *buf)
      |                           ^~~
../UI/app.cpp:1654:1: error: 'Uint32' does not name a type; did you mean 'uint32'?
 1654 | Uint32 App::GetKeyCode(Uint32 port, Uint32 bit)
      | ^~~~~~
      | uint32
../UI/app.cpp: In member function 'void App::FullScreen()':
../UI/app.cpp:1670:39: error: 'window' was not declared in this scope; did you mean 'OnWindow'?
 1670 |         ret = SDL_SetWindowFullscreen(window, SDL_WINDOW_FULLSCREEN_DESKTOP);
      |                                       ^~~~~~
      |                                       OnWindow
../UI/app.cpp:1670:47: error: 'SDL_WINDOW_FULLSCREEN_DESKTOP' was not declared in this scope
 1670 |         ret = SDL_SetWindowFullscreen(window, SDL_WINDOW_FULLSCREEN_DESKTOP);
      |                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../UI/app.cpp:1670:15: error: 'SDL_SetWindowFullscreen' was not declared in this scope
 1670 |         ret = SDL_SetWindowFullscreen(window, SDL_WINDOW_FULLSCREEN_DESKTOP);
      |               ^~~~~~~~~~~~~~~~~~~~~~~
../UI/app.cpp:1675:17: error: 'SDL_GetWindowSize' was not declared in this scope
 1675 |                 SDL_GetWindowSize(window, &width, &height);
      |                 ^~~~~~~~~~~~~~~~~
../UI/app.cpp: In member function 'void App::WindowScreen()':
../UI/app.cpp:1696:39: error: 'window' was not declared in this scope; did you mean 'OnWindow'?
 1696 |         ret = SDL_SetWindowFullscreen(window, 0);
      |                                       ^~~~~~
      |                                       OnWindow
../UI/app.cpp:1696:15: error: 'SDL_SetWindowFullscreen' was not declared in this scope
 1696 |         ret = SDL_SetWindowFullscreen(window, 0);
      |               ^~~~~~~~~~~~~~~~~~~~~~~
../UI/app.cpp:1701:17: error: 'SDL_GetWindowSize' was not declared in this scope
 1701 |                 SDL_GetWindowSize(window, &width, &height);
      |                 ^~~~~~~~~~~~~~~~~
../UI/app.cpp: In member function 'void App::NormalSpeed()':
../UI/app.cpp:1742:16: error: 'draw_tick' was not declared in this scope
 1742 |         memset(draw_tick, 0, sizeof(draw_tick));
      |                ^~~~~~~~~
../UI/app.cpp:1743:9: error: 'draw_tick_count' was not declared in this scope; did you mean 'draw_tick_point'?
 1743 |         draw_tick_count = 0;
      |         ^~~~~~~~~~~~~~~
      |         draw_tick_point
../UI/app.cpp: In member function 'void App::SetWindowWidth()':
../UI/app.cpp:1782:27: error: 'window' was not declared in this scope; did you mean 'OnWindow'?
 1782 |         SDL_SetWindowSize(window, width, height);
      |                           ^~~~~~
      |                           OnWindow
../UI/app.cpp:1782:9: error: 'SDL_SetWindowSize' was not declared in this scope
 1782 |         SDL_SetWindowSize(window, width, height);
      |         ^~~~~~~~~~~~~~~~~
../UI/app.cpp:1785:9: error: 'SDL_GetWindowSize' was not declared in this scope
 1785 |         SDL_GetWindowSize(window, &width, &height);
      |         ^~~~~~~~~~~~~~~~~
../UI/app.cpp: In member function 'void App::EnterMenu(int)':
../UI/app.cpp:1799:9: error: 'system_info' was not declared in this scope
 1799 |         system_info = setting->GetSystems();
      |         ^~~~~~~~~~~
../UI/app.cpp:1799:32: error: 'class Setting' has no member named 'GetSystems'; did you mean 'GetSystemMode'?
 1799 |         system_info = setting->GetSystems();
      |                                ^~~~~~~~~~
      |                                GetSystemMode
../UI/app.cpp:1802:24: error: 'SDL_ENABLE' was not declared in this scope
 1802 |         SDL_ShowCursor(SDL_ENABLE);
      |                        ^~~~~~~~~~
../UI/app.cpp:1802:9: error: 'SDL_ShowCursor' was not declared in this scope
 1802 |         SDL_ShowCursor(SDL_ENABLE);
      |         ^~~~~~~~~~~~~~
../UI/app.cpp: In member function 'void App::LeaveMenu(bool)':
../UI/app.cpp:1827:9: error: 'mouse_tick' was not declared in this scope
 1827 |         mouse_tick = SDL_GetTicks();
      |         ^~~~~~~~~~
../UI/app.cpp:1827:22: error: 'SDL_GetTicks' was not declared in this scope
 1827 |         mouse_tick = SDL_GetTicks();
      |                      ^~~~~~~~~~~~
../UI/app.cpp:1841:30: error: 'class Setting' has no member named 'GetSystems'; did you mean 'GetSystemMode'?
 1841 |                 if (setting->GetSystems() != system_info) {
      |                              ^~~~~~~~~~
      |                              GetSystemMode
../UI/app.cpp:1841:46: error: 'system_info' was not declared in this scope
 1841 |                 if (setting->GetSystems() != system_info) {
      |                                              ^~~~~~~~~~~
../UI/app.cpp:1843:48: error: 'class Setting' has no member named 'GetSystems'; did you mean 'GetSystemMode'?
 1843 |                         system_info = setting->GetSystems();
      |                                                ^~~~~~~~~~
      |                                                GetSystemMode
../UI/app.cpp: In member function 'void App::ChangeAudio()':
../UI/app.cpp:1905:24: error: 'audio_param' was not declared in this scope
 1905 |                 memcpy(audio_param, &param, sizeof(param));
      |                        ^~~~~~~~~~~
../UI/app.cpp: In member function 'bool App::Load(int)':
../UI/app.cpp:2078:16: error: 'state_path' was not declared in this scope
 2078 |         strcpy(state_path, setting->GetSettingDir());
      |                ^~~~~~~~~~
../UI/app.cpp:2102:32: error: 'draw_tick' was not declared in this scope
 2102 |                         memset(draw_tick, 0, sizeof(draw_tick));
      |                                ^~~~~~~~~
../UI/app.cpp:2103:25: error: 'draw_tick_count' was not declared in this scope; did you mean 'draw_tick_point'?
 2103 |                         draw_tick_count = 0;
      |                         ^~~~~~~~~~~~~~~
      |                         draw_tick_point
../UI/app.cpp: In member function 'bool App::Save(int)':
../UI/app.cpp:2154:16: error: 'state_path' was not declared in this scope
 2154 |         strcpy(state_path, setting->GetSettingDir());
      |                ^~~~~~~~~~
../UI/app.cpp: In member function 'bool App::GetStateTime(int, cur_time_t*)':
../UI/app.cpp:2197:16: error: 'state_path' was not declared in this scope
 2197 |         strcpy(state_path, setting->GetSettingDir());
      |                ^~~~~~~~~~
../UI/app.cpp: In member function 'void App::LockVM()':
../UI/app.cpp:2219:13: error: 'vm_sem' was not declared in this scope
 2219 |         if (vm_sem != NULL) {
      |             ^~~~~~
../UI/app.cpp:2220:17: error: 'SDL_SemWait' was not declared in this scope
 2220 |                 SDL_SemWait(vm_sem);
      |                 ^~~~~~~~~~~
../UI/app.cpp: In member function 'void App::UnlockVM()':
../UI/app.cpp:2230:13: error: 'vm_sem' was not declared in this scope
 2230 |         if (vm_sem != NULL) {
      |             ^~~~~~
../UI/app.cpp:2231:17: error: 'SDL_SemPost' was not declared in this scope
 2231 |                 SDL_SemPost(vm_sem);
      |                 ^~~~~~~~~~~
../UI/app.cpp: At global scope:
../UI/app.cpp:2239:1: error: 'Uint32' does not name a type; did you mean 'uint32'?
 2239 | Uint32 App::GetAppVersion()
      | ^~~~~~
      | uint32
gmake: *** [makefile:41: ../UI/app.o] Error 1
*** Error code 2

Stop.
bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-2024Q4-x86_64/emulators/xm8
*** Error code 1

Stop.
bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-2024Q4-x86_64/emulators/xm8