+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/xm8-1.70nb6/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/xm8-1.70nb6/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Building for xm8-1.70nb6
g++ -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include/SDL2 -I/opt/pkg/include -I/opt/pkg/include/libdrm -I/usr/include -DSDL -D_PC8801MA -c -Wall -I/opt/pkg/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
In file included from ../UI/app.cpp:16:
../UI/emu_sdl.h:44:19: error: '_MAX_PATH' was not declared in this scope
   44 |  _TCHAR base_path[_MAX_PATH * 3];
      |                   ^~~~~~~~~
../UI/emu_sdl.h:46:19: 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:26: error: '_MAX_PATH' was not declared in this scope
   96 |  _TCHAR initial_disk_dir[_MAX_PATH];
      |                          ^~~~~~~~~
../ePC-8801MA/config.h:97:47: 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:26: error: '_MAX_PATH' was not declared in this scope
  104 |  _TCHAR initial_tape_dir[_MAX_PATH];
      |                          ^~~~~~~~~
../ePC-8801MA/config.h:105:39: error: '_MAX_PATH' was not declared in this scope
  105 |  _TCHAR recent_tape_path[MAX_HISTORY][_MAX_PATH];
      |                                       ^~~~~~~~~
../ePC-8801MA/config.h:140:24: error: '_MAX_PATH' was not declared in this scope
  140 |  _TCHAR fmgen_dll_path[_MAX_PATH];
      |                        ^~~~~~~~~
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:15: error: variable or field '__stdcall' declared void
  188 |   friend void __stdcall FM_NextPhase(Operator* op);
      |               ^~~~~~~~~
../ePC-8801MA/vm/fmgen/fmgen.h:188:15: error: expected ';' at end of member declaration
  188 |   friend void __stdcall FM_NextPhase(Operator* op);
      |               ^~~~~~~~~
      |                        ;
../ePC-8801MA/vm/fmgen/fmgen.h:188:25: error: ISO C++ forbids declaration of 'FM_NextPhase' with no type [-fpermissive]
  188 |   friend void __stdcall FM_NextPhase(Operator* op);
      |                         ^~~~~~~~~~~~
In file included from ../UI/app.cpp:22:
../ePC-8801MA/vm/pc8801/pc88.h:238:23: error: '_MAX_PATH' was not declared in this scope
  238 |  _TCHAR rec_file_path[_MAX_PATH];
      |                       ^~~~~~~~~
In file included from ../UI/app.cpp:23:
../UI/setting.h:102:2: error: 'Uint32' does not name a type; did you mean 'sint32'?
  102 |  Uint32 GetDip();
      |  ^~~~~~
      |  sint32
../UI/setting.h:106:2: error: 'Uint32' does not name a type; did you mean 'sint32'?
  106 |  Uint32 GetSystems();
      |  ^~~~~~
      |  sint32
../UI/setting.h:122:2: error: 'Uint8' does not name a type; did you mean 'sint8'?
  122 |  Uint8 GetBrightness();
      |  ^~~~~
      |  sint8
../UI/setting.h:124:21: error: 'Uint8' has not been declared
  124 |  void SetBrightness(Uint8 bri);
      |                     ^~~~~
../UI/setting.h:126:2: error: 'Uint8' does not name a type; did you mean 'sint8'?
  126 |  Uint8 GetMenuAlpha();
      |  ^~~~~
      |  sint8
../UI/setting.h:140:2: error: 'Uint8' does not name a type; did you mean 'sint8'?
  140 |  Uint8 GetStatusAlpha();
      |  ^~~~~
      |  sint8
../UI/setting.h:142:22: error: 'Uint8' has not been declared
  142 |  void SetStatusAlpha(Uint8 alpha);
      |                      ^~~~~
../UI/setting.h:184:2: error: 'Uint8' does not name a type; did you mean 'sint8'?
  184 |  Uint8 GetSoftKeyAlpha();
      |  ^~~~~
      |  sint8
../UI/setting.h:186:23: error: 'Uint8' has not been declared
  186 |  void SetSoftKeyAlpha(Uint8 alpha);
      |                       ^~~~~
../UI/setting.h:188:2: error: 'Uint32' does not name a type; did you mean 'sint32'?
  188 |  Uint32 GetSoftKeyTime();
      |  ^~~~~~
      |  sint32
../UI/setting.h:190:22: error: 'Uint32' has not been declared
  190 |  void SetSoftKeyTime(Uint32 ms);
      |                      ^~~~~~
../UI/setting.h:204:2: error: 'Uint32' does not name a type; did you mean 'sint32'?
  204 |  Uint32 GetMouseTime();
      |  ^~~~~~
      |  sint32
../UI/setting.h:206:20: error: 'Uint32' has not been declared
  206 |  void SetMouseTime(Uint32 ms);
      |                    ^~~~~~
../UI/setting.h:212:2: error: 'Uint32' does not name a type; did you mean 'sint32'?
  212 |  Uint32 GetJoystickToKey(int button);
      |  ^~~~~~
      |  sint32
../UI/setting.h:214:36: error: 'Uint32' has not been declared
  214 |  void SetJoystickToKey(int button, Uint32 data);
      |                                    ^~~~~~
../UI/setting.h:236:19: error: '_MAX_PATH' was not declared in this scope
  236 |  char setting_dir[_MAX_PATH * 3];
      |                   ^~~~~~~~~
../UI/setting.h:238:20: error: '_MAX_PATH' was not declared in this scope
  238 |  char setting_path[_MAX_PATH * 3];
      |                    ^~~~~~~~~
../UI/setting.h:244:2: error: 'Uint8' does not name a type; did you mean 'sint8'?
  244 |  Uint8 brightness;
      |  ^~~~~
      |  sint8
../UI/setting.h:250:2: error: 'Uint8' does not name a type; did you mean 'sint8'?
  250 |  Uint8 softkey_alpha;
      |  ^~~~~
      |  sint8
../UI/setting.h:252:2: error: 'Uint32' does not name a type; did you mean 'sint32'?
  252 |  Uint32 softkey_time;
      |  ^~~~~~
      |  sint32
../UI/setting.h:260:2: error: 'Uint32' does not name a type; did you mean 'sint32'?
  260 |  Uint32 mouse_time;
      |  ^~~~~~
      |  sint32
../UI/setting.h:266:2: error: 'Uint8' does not name a type; did you mean 'sint8'?
  266 |  Uint8 status_alpha;
      |  ^~~~~
      |  sint8
In file included from ../UI/app.cpp:24:
../UI/platform.h:26:12: error: 'SDL_Window' has not been declared
   26 |  bool Init(SDL_Window *window);
      |            ^~~~~~~~~~
../UI/platform.h:32:41: error: 'Uint32' has not been declared
   32 |  const char* FindFirst(const char *dir, Uint32 *info);
      |                                         ^~~~~~
../UI/platform.h:34:14: error: expected ';' at end of member declaration
   34 |  const char* FindNext(Uint32 *info);
      |              ^~~~~~~~
      |                      ;
../UI/platform.h:34:29: error: expected ')' before '*' token
   34 |  const char* FindNext(Uint32 *info);
      |                      ~      ^~
      |                             )
../UI/platform.h:36:13: error: 'Uint32' has not been declared
   36 |  bool IsDir(Uint32 info);
      |             ^~~~~~
../UI/platform.h:46:14: 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:12: error: 'SDL_Window' has not been declared
   26 |  bool Init(SDL_Window *win);
      |            ^~~~~~~~~~
../UI/video.h:46:2: error: 'Uint32' does not name a type; did you mean 'sint32'?
   46 |  Uint32* GetMenuFrame();
      |  ^~~~~~
      |  sint32
../UI/video.h:50:2: error: 'Uint32' does not name a type; did you mean 'sint32'?
   50 |  Uint32* GetSoftKeyFrame();
      |  ^~~~~~
      |  sint32
../UI/video.h:62:20: error: 'Uint32' has not been declared
   62 |  void SetFrameRate(Uint32 rate);
      |                    ^~~~~~
../UI/video.h:64:21: error: 'Uint32' has not been declared
   64 |  void SetSystemInfo(Uint32 info);
      |                     ^~~~~~
../UI/video.h:102:20: error: 'SDL_Texture' has not been declared
  102 |  void CopyFrameBuf(SDL_Texture *texture, Uint32 *src, int height, int top = 0);
      |                    ^~~~~~~~~~~
../UI/video.h:102:42: error: 'Uint32' has not been declared
  102 |  void CopyFrameBuf(SDL_Texture *texture, Uint32 *src, int height, int top = 0);
      |                                          ^~~~~~
../UI/video.h:136:2: error: 'SDL_Rect' does not name a type
  136 |  SDL_Rect draw_rect;
      |  ^~~~~~~~
../UI/video.h:138:2: error: 'SDL_Rect' does not name a type
  138 |  SDL_Rect status_rect;
      |  ^~~~~~~~
../UI/video.h:140:2: error: 'SDL_Rect' does not name a type
  140 |  SDL_Rect clear_rect[2];
      |  ^~~~~~~~
../UI/video.h:142:2: error: 'Uint8' does not name a type; did you mean 'sint8'?
  142 |  Uint8 brightness;
      |  ^~~~~
      |  sint8
../UI/video.h:146:2: error: 'Uint8' does not name a type; did you mean 'sint8'?
  146 |  Uint8 softkey_mod;
      |  ^~~~~
      |  sint8
../UI/video.h:150:2: error: 'Uint32' does not name a type; did you mean 'sint32'?
  150 |  Uint32 status_alpha;
      |  ^~~~~~
      |  sint32
../UI/video.h:166:2: error: 'Uint32' does not name a type; did you mean 'sint32'?
  166 |  Uint32 frame_rate[2];
      |  ^~~~~~
      |  sint32
../UI/video.h:170:2: error: 'Uint32' does not name a type; did you mean 'sint32'?
  170 |  Uint32 system_info[2];
      |  ^~~~~~
      |  sint32
../UI/video.h:182:2: error: 'SDL_Window' does not name a type
  182 |  SDL_Window *window;
      |  ^~~~~~~~~~
../UI/video.h:184:2: error: 'SDL_Renderer' does not name a type
  184 |  SDL_Renderer *renderer;
      |  ^~~~~~~~~~~~
../UI/video.h:186:2: error: 'SDL_Texture' does not name a type
  186 |  SDL_Texture *draw_texture;
      |  ^~~~~~~~~~~
../UI/video.h:188:2: error: 'SDL_Texture' does not name a type
  188 |  SDL_Texture *menu_texture;
      |  ^~~~~~~~~~~
../UI/video.h:190:2: error: 'SDL_Texture' does not name a type
  190 |  SDL_Texture *softkey_texture;
      |  ^~~~~~~~~~~
../UI/video.h:192:2: 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:12: error: 'Uint8' has not been declared
   60 |  int Write(Uint8 *stream, int len);
      |            ^~~~~
../UI/audio.h:62:45: error: 'Uint8' has not been declared
   62 |  static void CommonCallback(void *userdata, Uint8 *stream, int len);
      |                                             ^~~~~
../UI/audio.h:64:16: error: 'Uint8' has not been declared
   64 |  void Callback(Uint8 *steram, int len);
      |                ^~~~~
../UI/audio.h:70:2: error: 'SDL_sem' does not name a type
   70 |  SDL_sem *audio_sem;
      |  ^~~~~~~
../UI/audio.h:76:2: error: 'SDL_AudioDeviceID' does not name a type
   76 |  SDL_AudioDeviceID device_id;
      |  ^~~~~~~~~~~~~~~~~
../UI/audio.h:78:2: error: 'SDL_AudioSpec' does not name a type
   78 |  SDL_AudioSpec device_spec;
      |  ^~~~~~~~~~~~~
../UI/audio.h:84:2: error: 'Uint8' does not name a type; did you mean 'sint8'?
   84 |  Uint8 *sample_buffer;
      |  ^~~~~
      |  sint8
In file included from ../UI/app.cpp:27:
../UI/font.h:26:12: error: 'SDL_Window' has not been declared
   26 |  bool Init(SDL_Window *win);
      |            ^~~~~~~~~~
../UI/font.h:32:2: error: 'Uint8' does not name a type; did you mean 'sint8'?
   32 |  Uint8 GetROMVersion(int offset);
      |  ^~~~~
      |  sint8
../UI/font.h:36:16: error: 'Uint32' has not been declared
   36 |  void DrawRect(Uint32 *buf, SDL_Rect *rect, Uint32 fore, Uint32 back);
      |                ^~~~~~
../UI/font.h:36:29: error: 'SDL_Rect' has not been declared
   36 |  void DrawRect(Uint32 *buf, SDL_Rect *rect, Uint32 fore, Uint32 back);
      |                             ^~~~~~~~
../UI/font.h:36:45: error: 'Uint32' has not been declared
   36 |  void DrawRect(Uint32 *buf, SDL_Rect *rect, Uint32 fore, Uint32 back);
      |                                             ^~~~~~
../UI/font.h:36:58: error: 'Uint32' has not been declared
   36 |  void DrawRect(Uint32 *buf, SDL_Rect *rect, Uint32 fore, Uint32 back);
      |                                                          ^~~~~~
../UI/font.h:38:20: error: 'Uint32' has not been declared
   38 |  void DrawFillRect(Uint32 *buf, SDL_Rect *rect, Uint32 fore);
      |                    ^~~~~~
../UI/font.h:38:33: error: 'SDL_Rect' has not been declared
   38 |  void DrawFillRect(Uint32 *buf, SDL_Rect *rect, Uint32 fore);
      |                                 ^~~~~~~~
../UI/font.h:38:49: error: 'Uint32' has not been declared
   38 |  void DrawFillRect(Uint32 *buf, SDL_Rect *rect, Uint32 fore);
      |                                                 ^~~~~~
../UI/font.h:40:20: error: 'Uint32' has not been declared
   40 |  void DrawHalfRect(Uint32 *buf, SDL_Rect *rect, Uint32 fore, Uint32 back);
      |                    ^~~~~~
../UI/font.h:40:33: error: 'SDL_Rect' has not been declared
   40 |  void DrawHalfRect(Uint32 *buf, SDL_Rect *rect, Uint32 fore, Uint32 back);
      |                                 ^~~~~~~~
../UI/font.h:40:49: error: 'Uint32' has not been declared
   40 |  void DrawHalfRect(Uint32 *buf, SDL_Rect *rect, Uint32 fore, Uint32 back);
      |                                                 ^~~~~~
../UI/font.h:40:62: error: 'Uint32' has not been declared
   40 |  void DrawHalfRect(Uint32 *buf, SDL_Rect *rect, Uint32 fore, Uint32 back);
      |                                                              ^~~~~~
../UI/font.h:42:24: error: 'Uint32' has not been declared
   42 |  void DrawSjisCenterOr(Uint32 *buf, SDL_Rect *rect, const char *string, Uint32 fore);
      |                        ^~~~~~
../UI/font.h:42:37: error: 'SDL_Rect' has not been declared
   42 |  void DrawSjisCenterOr(Uint32 *buf, SDL_Rect *rect, const char *string, Uint32 fore);
      |                                     ^~~~~~~~
../UI/font.h:42:73: error: 'Uint32' has not been declared
   42 |  void DrawSjisCenterOr(Uint32 *buf, SDL_Rect *rect, const char *string, Uint32 fore);
      |                                                                         ^~~~~~
../UI/font.h:44:22: error: 'Uint32' has not been declared
   44 |  void DrawSjisLeftOr(Uint32 *buf, SDL_Rect *rect, const char *string, Uint32 fore);
      |                      ^~~~~~
../UI/font.h:44:35: error: 'SDL_Rect' has not been declared
   44 |  void DrawSjisLeftOr(Uint32 *buf, SDL_Rect *rect, const char *string, Uint32 fore);
      |                                   ^~~~~~~~
../UI/font.h:44:71: error: 'Uint32' has not been declared
   44 |  void DrawSjisLeftOr(Uint32 *buf, SDL_Rect *rect, const char *string, Uint32 fore);
      |                                                                       ^~~~~~
../UI/font.h:46:22: error: 'Uint32' has not been declared
   46 |  void DrawSjisBoldOr(Uint32 *buf, SDL_Rect *rect, const char *string, Uint32 fore);
      |                      ^~~~~~
../UI/font.h:46:35: error: 'SDL_Rect' has not been declared
   46 |  void DrawSjisBoldOr(Uint32 *buf, SDL_Rect *rect, const char *string, Uint32 fore);
      |                                   ^~~~~~~~
../UI/font.h:46:71: error: 'Uint32' has not been declared
   46 |  void DrawSjisBoldOr(Uint32 *buf, SDL_Rect *rect, const char *string, Uint32 fore);
      |                                                                       ^~~~~~
../UI/font.h:48:23: error: 'Uint32' has not been declared
   48 |  void DrawSoftKeyRect(Uint32 *buf, SDL_Rect *rect, Uint32 fore, Uint32 inside);
      |                       ^~~~~~
../UI/font.h:48:36: error: 'SDL_Rect' has not been declared
   48 |  void DrawSoftKeyRect(Uint32 *buf, SDL_Rect *rect, Uint32 fore, Uint32 inside);
      |                                    ^~~~~~~~
../UI/font.h:48:52: error: 'Uint32' has not been declared
   48 |  void DrawSoftKeyRect(Uint32 *buf, SDL_Rect *rect, Uint32 fore, Uint32 inside);
      |                                                    ^~~~~~
../UI/font.h:48:65: error: 'Uint32' has not been declared
   48 |  void DrawSoftKeyRect(Uint32 *buf, SDL_Rect *rect, Uint32 fore, Uint32 inside);
      |                                                                 ^~~~~~
../UI/font.h:50:21: error: 'Uint32' has not been declared
   50 |  void DrawSoftKey1x(Uint32 *buf, SDL_Rect *rect, const char *string, Uint32 fore);
      |                     ^~~~~~
../UI/font.h:50:34: error: 'SDL_Rect' has not been declared
   50 |  void DrawSoftKey1x(Uint32 *buf, SDL_Rect *rect, const char *string, Uint32 fore);
      |                                  ^~~~~~~~
../UI/font.h:50:70: error: 'Uint32' has not been declared
   50 |  void DrawSoftKey1x(Uint32 *buf, SDL_Rect *rect, const char *string, Uint32 fore);
      |                                                                      ^~~~~~
../UI/font.h:52:24: error: 'Uint32' has not been declared
   52 |  void DrawSoftKey1xSub(Uint32 *buf, const char *string, Uint32 fore);
      |                        ^~~~~~
../UI/font.h:52:57: error: 'Uint32' has not been declared
   52 |  void DrawSoftKey1xSub(Uint32 *buf, const char *string, Uint32 fore);
      |                                                         ^~~~~~
../UI/font.h:54:21: error: 'Uint32' has not been declared
   54 |  void DrawSoftKey4x(Uint32 *buf, SDL_Rect *rect, const char *string, Uint32 fore);
      |                     ^~~~~~
../UI/font.h:54:34: error: 'SDL_Rect' has not been declared
   54 |  void DrawSoftKey4x(Uint32 *buf, SDL_Rect *rect, const char *string, Uint32 fore);
      |                                  ^~~~~~~~
../UI/font.h:54:70: error: 'Uint32' has not been declared
   54 |  void DrawSoftKey4x(Uint32 *buf, SDL_Rect *rect, const char *string, Uint32 fore);
      |                                                                      ^~~~~~
../UI/font.h:56:25: error: 'Uint32' has not been declared
   56 |  void DrawAnk9xCenterOr(Uint32 *buf, SDL_Rect *rect, const char *string, Uint32 fore);
      |                         ^~~~~~
../UI/font.h:56:38: error: 'SDL_Rect' has not been declared
   56 |  void DrawAnk9xCenterOr(Uint32 *buf, SDL_Rect *rect, const char *string, Uint32 fore);
      |                                      ^~~~~~~~
../UI/font.h:56:74: error: 'Uint32' has not been declared
   56 |  void DrawAnk9xCenterOr(Uint32 *buf, SDL_Rect *rect, const char *string, Uint32 fore);
      |                                                                          ^~~~~~
../UI/font.h:58:19: error: 'Uint32' has not been declared
   58 |  void DrawAnkHalf(Uint32 *buf, const char *string, Uint32 fore, Uint32 back);
      |                   ^~~~~~
../UI/font.h:58:52: error: 'Uint32' has not been declared
   58 |  void DrawAnkHalf(Uint32 *buf, const char *string, Uint32 fore, Uint32 back);
      |                                                    ^~~~~~
../UI/font.h:58:65: error: 'Uint32' has not been declared
   58 |  void DrawAnkHalf(Uint32 *buf, const char *string, Uint32 fore, Uint32 back);
      |                                                                 ^~~~~~
../UI/font.h:60:22: error: 'Uint32' has not been declared
   60 |  void DrawAnkQuarter(Uint32 *buf, char ch, Uint32 fore, Uint32 back);
      |                      ^~~~~~
../UI/font.h:60:44: error: 'Uint32' has not been declared
   60 |  void DrawAnkQuarter(Uint32 *buf, char ch, Uint32 fore, Uint32 back);
      |                                            ^~~~~~
../UI/font.h:60:57: error: 'Uint32' has not been declared
   60 |  void DrawAnkQuarter(Uint32 *buf, char ch, Uint32 fore, Uint32 back);
      |                                                         ^~~~~~
../UI/font.h:66:2: error: 'SDL_Window' does not name a type
   66 |  SDL_Window *window;
      |  ^~~~~~~~~~
../UI/font.h:72:17: error: 'Uint8' has not been declared
   72 |  int GetAnkAddr(Uint8 ank);
      |                 ^~~~~
../UI/font.h:74:21: error: 'Uint8' has not been declared
   74 |  int GetAnkHalfAddr(Uint8 ank);
      |                     ^~~~~
../UI/font.h:76:24: error: 'Uint8' has not been declared
   76 |  int GetAnkQuarterAddr(Uint8 ank);
      |                        ^~~~~
../UI/font.h:78:19: error: 'Uint16' has not been declared
   78 |  int GetKanjiAddr(Uint16 sjis);
      |                   ^~~~~~
../UI/font.h:80:2: error: 'Uint32' does not name a type; did you mean 'sint32'?
   80 |  Uint32 SjisToJis(Uint32 sjis);
      |  ^~~~~~
      |  sint32
../UI/font.h:82:2: error: 'Uint32' does not name a type; did you mean 'sint32'?
   82 |  Uint32 JisToOffset(Uint32 jis);
      |  ^~~~~~
      |  sint32
../UI/font.h:86:2: error: 'Uint8' does not name a type; did you mean 'sint8'?
   86 |  Uint8 kanji_rom[0x40000];
      |  ^~~~~
      |  sint8
../UI/font.h:88:2: error: 'Uint8' does not name a type; did you mean 'sint8'?
   88 |  Uint8 rom_version[4];
      |  ^~~~~
      |  sint8
../UI/font.h:90:19: 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:3: error: 'SDL_Scancode' does not name a type
   65 |   SDL_Scancode code;
      |   ^~~~~~~~~~~~
../UI/softkey.h:84:13: error: 'Uint32' has not been declared
   84 |  void Shift(Uint32 shift);
      |             ^~~~~~
../UI/softkey.h:133:2: error: 'Uint32' does not name a type; did you mean 'sint32'?
  133 |  Uint32 *frame_buf;
      |  ^~~~~~
      |  sint32
../UI/softkey.h:135:2: error: 'SDL_Rect' does not name a type
  135 |  SDL_Rect key_rect;
      |  ^~~~~~~~
In file included from ../UI/app.cpp:28:
../UI/input.h:62:20: error: 'SDL_Scancode' has not been declared
   62 |  bool GetKeyStatus(SDL_Scancode code);
      |                    ^~~~~~~~~~~~
../UI/input.h:64:19: error: 'Uint32' has not been declared
   64 |  void GetJoystick(Uint32 *status);
      |                   ^~~~~~
../UI/input.h:70:28: error: 'SDL_Scancode' has not been declared
   70 |  void OnKeyDown(bool soft, SDL_Scancode code);
      |                            ^~~~~~~~~~~~
../UI/input.h:72:26: error: 'SDL_Scancode' has not been declared
   72 |  void OnKeyUp(bool soft, SDL_Scancode code);
      |                          ^~~~~~~~~~~~
../UI/input.h:74:21: error: 'SDL_Event' has not been declared
   74 |  void OnMouseMotion(SDL_Event *e);
      |                     ^~~~~~~~~
../UI/input.h:76:25: error: 'SDL_Event' has not been declared
   76 |  void OnMouseButtonDown(SDL_Event *e);
      |                         ^~~~~~~~~
../UI/input.h:78:23: error: 'SDL_Event' has not been declared
   78 |  void OnMouseButtonUp(SDL_Event *e);
      |                       ^~~~~~~~~
../UI/input.h:80:20: error: 'SDL_Event' has not been declared
   80 |  void OnMouseWheel(SDL_Event *e);
      |                    ^~~~~~~~~
../UI/input.h:84:20: error: 'SDL_Event' has not been declared
   84 |  void OnFingerDown(SDL_Event *e);
      |                    ^~~~~~~~~
../UI/input.h:86:18: error: 'SDL_Event' has not been declared
   86 |  void OnFingerUp(SDL_Event *e);
      |                  ^~~~~~~~~
../UI/input.h:88:22: error: 'SDL_Event' has not been declared
   88 |  void OnFingerMotion(SDL_Event *e);
      |                      ^~~~~~~~~
../UI/input.h:96:2: error: 'Uint32' does not name a type; did you mean 'sint32'?
   96 |  Uint32 GetKeyShift();
      |  ^~~~~~
      |  sint32
../UI/input.h:124:2: error: 'Uint32' does not name a type; did you mean 'sint32'?
  124 |  Uint32 key_tick;
      |  ^~~~~~
      |  sint32
../UI/input.h:126:2: error: 'Uint32' does not name a type; did you mean 'sint32'?
  126 |  Uint32 key_shift;
      |  ^~~~~~
      |  sint32
../UI/input.h:128:2: error: 'Uint32' does not name a type; did you mean 'sint32'?
  128 |  Uint32 menu_delay;
      |  ^~~~~~
      |  sint32
../UI/input.h:130:2: error: 'SDL_Joystick' does not name a type
  130 |  SDL_Joystick **joystick;
      |  ^~~~~~~~~~~~
../UI/input.h:134:2: error: 'Uint32' does not name a type; did you mean 'sint32'?
  134 |  Uint32 joystick_prev;
      |  ^~~~~~
      |  sint32
../UI/input.h:136:2: error: 'Uint8' does not name a type; did you mean 'sint8'?
  136 |  Uint8 key_status[0x100];
      |  ^~~~~
      |  sint8
../UI/input.h:138:2: error: 'Uint8' does not name a type; did you mean 'sint8'?
  138 |  Uint8 key_buf[0x100];
      |  ^~~~~
      |  sint8
../UI/input.h:140:2: error: 'Uint32' does not name a type; did you mean 'sint32'?
  140 |  Uint32 key_table[0x120];
      |  ^~~~~~
      |  sint32
../UI/input.h:142:2: error: 'Uint32' does not name a type; did you mean 'sint32'?
  142 |  Uint32 key_soft_make_tick[0x120];
      |  ^~~~~~
      |  sint32
../UI/input.h:146:15: error: 'Uint32' does not name a type; did you mean 'sint32'?
  146 |  static const Uint32 key_base[0x120];
      |               ^~~~~~
      |               sint32
../UI/input.h:148:15: error: 'Uint32' does not name a type; did you mean 'sint32'?
  148 |  static const Uint32 joystick_button[15 * 2];
      |               ^~~~~~
      |               sint32
In file included from ../UI/app.cpp:29:
../UI/converter.h:38:2: error: 'Uint16' does not name a type; did you mean 'sint16'?
   38 |  Uint16 *ucs_table;
      |  ^~~~~~
      |  sint16
../UI/converter.h:40:15: error: 'Uint16' does not name a type; did you mean 'sint16'?
   40 |  static const Uint16 sjis_table[0x30 * 0xc0];
      |               ^~~~~~
      |               sint16
In file included from ../UI/app.cpp:30:
../UI/menu.h:120:17: error: 'SDL_Event' has not been declared
  120 |  void OnKeyDown(SDL_Event *e);
      |                 ^~~~~~~~~
../UI/menu.h:122:21: error: 'SDL_Event' has not been declared
  122 |  void OnMouseMotion(SDL_Event *e);
      |                     ^~~~~~~~~
../UI/menu.h:124:25: error: 'SDL_Event' has not been declared
  124 |  void OnMouseButtonDown(SDL_Event *e);
      |                         ^~~~~~~~~
../UI/menu.h:126:23: error: 'SDL_Event' has not been declared
  126 |  void OnMouseButtonUp(SDL_Event *e);
      |                       ^~~~~~~~~
../UI/menu.h:128:20: error: 'SDL_Event' has not been declared
  128 |  void OnMouseWheel(SDL_Event *e);
      |                    ^~~~~~~~~
../UI/menu.h:132:20: error: 'SDL_Event' has not been declared
  132 |  void OnFingerDown(SDL_Event *e);
      |                    ^~~~~~~~~
../UI/menu.h:134:18: error: 'SDL_Event' has not been declared
  134 |  void OnFingerUp(SDL_Event *e);
      |                  ^~~~~~~~~
../UI/menu.h:136:22: error: 'SDL_Event' has not been declared
  136 |  void OnFingerMotion(SDL_Event *e);
      |                      ^~~~~~~~~
../UI/menu.h:162:16: error: '_MAX_PATH' was not declared in this scope
  162 |  char file_dir[_MAX_PATH * 3];
      |                ^~~~~~~~~
../UI/menu.h:164:19: error: '_MAX_PATH' was not declared in this scope
  164 |  char file_target[_MAX_PATH * 3];
      |                   ^~~~~~~~~
../UI/menu.h:166:19: error: '_MAX_PATH' was not declared in this scope
  166 |  char file_expect[_MAX_PATH * 3];
      |                   ^~~~~~~~~
../UI/menu.h:176:15: error: 'Uint32' does not name a type; did you mean 'sint32'?
  176 |  static const Uint32 joytest_table[15 * 2];
      |               ^~~~~~
      |               sint32
In file included from ../UI/app.cpp:32:
../UI/diskmgr.h:88:12: error: '_MAX_PATH' was not declared in this scope
   88 |  char path[_MAX_PATH * 3];
      |            ^~~~~~~~~
../UI/diskmgr.h:90:11: error: '_MAX_PATH' was not declared in this scope
   90 |  char dir[_MAX_PATH * 3];
      |           ^~~~~~~~~
../UI/diskmgr.h:92:18: error: '_MAX_PATH' was not declared in this scope
   92 |  char state_path[_MAX_PATH * 3];
      |                  ^~~~~~~~~
../UI/diskmgr.h:100:2: error: 'Uint8' does not name a type; did you mean 'sint8'?
  100 |  Uint8 *wp_list;
      |  ^~~~~
      |  sint8
../UI/diskmgr.h:106:2: error: 'Uint32' does not name a type; did you mean 'sint32'?
  106 |  Uint32 signal;
      |  ^~~~~~
      |  sint32
In file included from ../UI/app.cpp:33:
../UI/tapemgr.h:62:12: error: '_MAX_PATH' was not declared in this scope
   62 |  char path[_MAX_PATH * 3];
      |            ^~~~~~~~~
../UI/tapemgr.h:64:11: error: '_MAX_PATH' was not declared in this scope
   64 |  char dir[_MAX_PATH * 3];
      |           ^~~~~~~~~
../UI/tapemgr.h:66:18: 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:15: error: 'SDL_Scancode' has not been declared
   78 |  void OnKeyVM(SDL_Scancode code);
      |               ^~~~~~~~~~~~
../UI/app.h:80:16: error: 'Uint8' has not been declared
   80 |  void GetKeyVM(Uint8 *buf);
      |                ^~~~~
../UI/app.h:82:2: error: 'Uint32' does not name a type; did you mean 'sint32'?
   82 |  Uint32 GetKeyCode(Uint32 port, Uint32 bit);
      |  ^~~~~~
      |  sint32
../UI/app.h:108:2: error: 'Uint32' does not name a type; did you mean 'sint32'?
  108 |  Uint32 GetAppVersion();
      |  ^~~~~~
      |  sint32
../UI/app.h:132:12: error: 'SDL_Event' has not been declared
  132 |  void Poll(SDL_Event *e);
      |            ^~~~~~~~~
../UI/app.h:134:16: error: 'SDL_Event' has not been declared
  134 |  void OnWindow(SDL_Event *e);
      |                ^~~~~~~~~
../UI/app.h:136:17: error: 'SDL_Event' has not been declared
  136 |  void OnKeyDown(SDL_Event *e);
      |                 ^~~~~~~~~
../UI/app.h:138:15: error: 'SDL_Event' has not been declared
  138 |  void OnKeyUp(SDL_Event *e);
      |               ^~~~~~~~~
../UI/app.h:140:18: error: 'SDL_Event' has not been declared
  140 |  void OnDropFile(SDL_Event *e);
      |                  ^~~~~~~~~
../UI/app.h:154:2: error: 'SDL_sem' does not name a type
  154 |  SDL_sem *vm_sem;
      |  ^~~~~~~
../UI/app.h:158:2: error: 'SDL_Window' does not name a type
  158 |  SDL_Window *window;
      |  ^~~~~~~~~~
../UI/app.h:218:2: error: 'Uint32' does not name a type; did you mean 'sint32'?
  218 |  Uint32 draw_tick[0x40];
      |  ^~~~~~
      |  sint32
../UI/app.h:220:2: error: 'Uint32' does not name a type; did you mean 'sint32'?
  220 |  Uint32 draw_tick_count;
      |  ^~~~~~
      |  sint32
../UI/app.h:226:2: error: 'Uint32' does not name a type; did you mean 'sint32'?
  226 |  Uint32 mouse_tick;
      |  ^~~~~~
      |  sint32
../UI/app.h:230:2: error: 'Uint32' does not name a type; did you mean 'sint32'?
  230 |  Uint32 system_info;
      |  ^~~~~~
      |  sint32
../UI/app.h:234:18: error: '_MAX_PATH' was not declared in this scope
  234 |  char state_path[_MAX_PATH * 3];
      |                  ^~~~~~~~~
../UI/app.h:242:2: error: 'Uint8' does not name a type; did you mean 'sint8'?
  242 |  Uint8 *audio_param;
      |  ^~~~~
      |  sint8
../UI/app.cpp: In constructor 'App::App()':
../UI/app.cpp:87:13: error: 'SDL_arraysize' was not declared in this scope
   87 |  SDL_assert(SDL_arraysize(diskmgr) == MAX_DRIVE);
      |             ^~~~~~~~~~~~~
../UI/app.cpp:87:2: error: 'SDL_assert' was not declared in this scope
   87 |  SDL_assert(SDL_arraysize(diskmgr) == MAX_DRIVE);
      |  ^~~~~~~~~~
../UI/app.cpp:90:2: error: 'vm_sem' was not declared in this scope
   90 |  vm_sem = NULL;
      |  ^~~~~~
../UI/app.cpp:92:2: error: 'window' was not declared in this scope; did you mean 'OnWindow'?
   92 |  window = NULL;
      |  ^~~~~~
      |  OnWindow
../UI/app.cpp:125:9: error: 'draw_tick' was not declared in this scope
  125 |  memset(draw_tick, 0, sizeof(draw_tick));
      |         ^~~~~~~~~
../UI/app.cpp:126:2: 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:2: error: 'mouse_tick' was not declared in this scope
  130 |  mouse_tick = 0;
      |  ^~~~~~~~~~
../UI/app.cpp:133:2: error: 'system_info' was not declared in this scope
  133 |  system_info = 0;
      |  ^~~~~~~~~~~
../UI/app.cpp:136:2: error: 'state_path' was not declared in this scope
  136 |  state_path[0] = '\0';
      |  ^~~~~~~~~~
../UI/app.cpp:139:2: 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:9: error: 'SDL_GetPlatform' was not declared in this scope; did you mean 'GetPlatform'?
  172 |  name = SDL_GetPlatform();
      |         ^~~~~~~~~~~~~~~
      |         GetPlatform
../UI/app.cpp:184:3: error: 'vm_sem' was not declared in this scope
  184 |   vm_sem = SDL_CreateSemaphore(1);
      |   ^~~~~~
../UI/app.cpp:184:12: error: 'SDL_CreateSemaphore' was not declared in this scope
  184 |   vm_sem = SDL_CreateSemaphore(1);
      |            ^~~~~~~~~~~~~~~~~~~
../UI/app.cpp:199:14: 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:2: error: 'SDL_SetHint' was not declared in this scope
  199 |  SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, setting->GetScaleQuality());
      |  ^~~~~~~~~~~
../UI/app.cpp:212:2: error: 'window' was not declared in this scope; did you mean 'OnWindow'?
  212 |  window = SDL_CreateWindow(  GetAppTitle(),
      |  ^~~~~~
      |  OnWindow
../UI/app.cpp:213:9: error: 'SDL_WINDOWPOS_UNDEFINED' was not declared in this scope
  213 |         SDL_WINDOWPOS_UNDEFINED,
      |         ^~~~~~~~~~~~~~~~~~~~~~~
../UI/app.cpp:217:9: 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:28: 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:53: 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:11: error: 'SDL_CreateWindow' was not declared in this scope
  212 |  window = SDL_CreateWindow(  GetAppTitle(),
      |           ^~~~~~~~~~~~~~~~
../UI/app.cpp:224:17: error: 'SDL_DROPFILE' was not declared in this scope
  224 |  SDL_EventState(SDL_DROPFILE, SDL_ENABLE);
      |                 ^~~~~~~~~~~~
../UI/app.cpp:224:31: error: 'SDL_ENABLE' was not declared in this scope
  224 |  SDL_EventState(SDL_DROPFILE, SDL_ENABLE);
      |                               ^~~~~~~~~~
../UI/app.cpp:224:2: error: 'SDL_EventState' was not declared in this scope
  224 |  SDL_EventState(SDL_DROPFILE, SDL_ENABLE);
      |  ^~~~~~~~~~~~~~
../UI/app.cpp:247:2: error: 'audio_param' was not declared in this scope
  247 |  audio_param = (Uint8*)SDL_malloc(sizeof(Audio::OpenParam));
      |  ^~~~~~~~~~~
../UI/app.cpp:247:17: error: 'Uint8' was not declared in this scope; did you mean 'sint8'?
  247 |  audio_param = (Uint8*)SDL_malloc(sizeof(Audio::OpenParam));
      |                 ^~~~~
      |                 sint8
../UI/app.cpp:247:23: error: expected primary-expression before ')' token
  247 |  audio_param = (Uint8*)SDL_malloc(sizeof(Audio::OpenParam));
      |                       ^
../UI/app.cpp:333:2: error: 'SDL_GetWindowSize' was not declared in this scope
  333 |  SDL_GetWindowSize(window, &width, &height);
      |  ^~~~~~~~~~~~~~~~~
../UI/app.cpp:337:20: error: 'SDL_arraysize' was not declared in this scope
  337 |  for (loop=0; loop<SDL_arraysize(power_level); loop++) {
      |                    ^~~~~~~~~~~~~
../UI/app.cpp:352:2: error: 'mouse_tick' was not declared in this scope
  352 |  mouse_tick = SDL_GetTicks();
      |  ^~~~~~~~~~
../UI/app.cpp:352:15: error: 'SDL_GetTicks' was not declared in this scope
  352 |  mouse_tick = SDL_GetTicks();
      |               ^~~~~~~~~~~~
../UI/app.cpp:353:2: error: 'SDL_ShowCursor' was not declared in this scope
  353 |  SDL_ShowCursor(SDL_ENABLE);
      |  ^~~~~~~~~~~~~~
../UI/app.cpp:356:2: error: 'system_info' was not declared in this scope
  356 |  system_info = setting->GetSystems();
      |  ^~~~~~~~~~~
../UI/app.cpp:356:25: 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:6: error: 'audio_param' was not declared in this scope
  444 |  if (audio_param != NULL) {
      |      ^~~~~~~~~~~
../UI/app.cpp:445:3: error: 'SDL_free' was not declared in this scope
  445 |   SDL_free(audio_param);
      |   ^~~~~~~~
../UI/app.cpp:470:6: error: 'window' was not declared in this scope; did you mean 'OnWindow'?
  470 |  if (window != NULL) {
      |      ^~~~~~
      |      OnWindow
../UI/app.cpp:471:3: error: 'SDL_DestroyWindow' was not declared in this scope
  471 |   SDL_DestroyWindow(window);
      |   ^~~~~~~~~~~~~~~~~
../UI/app.cpp:489:6: error: 'vm_sem' was not declared in this scope
  489 |  if (vm_sem != NULL) {
      |      ^~~~~~
../UI/app.cpp:490:3: 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:2: 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:2: 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:2: 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:2: 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:2: 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:2: 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:2: 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:2: 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:2: 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:2: 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:2: 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:2: error: 'SDL_Event' was not declared in this scope
  612 |  SDL_Event e;
      |  ^~~~~~~~~
../UI/app.cpp:615:2: error: 'Uint32' was not declared in this scope; did you mean 'sint32'?
  615 |  Uint32 begin;
      |  ^~~~~~
      |  sint32
../UI/app.cpp:616:8: error: expected ';' before 'add'
  616 |  Uint32 add;
      |        ^~~~
      |        ;
../UI/app.cpp:617:8: error: expected ';' before 'total'
  617 |  Uint32 total;
      |        ^~~~~~
      |        ;
../UI/app.cpp:618:8: error: expected ';' before 'diff'
  618 |  Uint32 diff;
      |        ^~~~~
      |        ;
../UI/app.cpp:621:2: error: 'Uint8' was not declared in this scope; did you mean 'sint8'?
  621 |  Uint8 *buffer;
      |  ^~~~~
      |  sint8
../UI/app.cpp:621:9: error: 'buffer' was not declared in this scope; did you mean 'setbuffer'?
  621 |  Uint8 *buffer;
      |         ^~~~~~
      |         setbuffer
../UI/app.cpp:629:2: error: 'begin' was not declared in this scope
  629 |  begin = SDL_GetTicks();
      |  ^~~~~
../UI/app.cpp:629:10: error: 'SDL_GetTicks' was not declared in this scope
  629 |  begin = SDL_GetTicks();
      |          ^~~~~~~~~~~~
../UI/app.cpp:633:2: error: 'add' was not declared in this scope
  633 |  add = (Uint32)ms_per_frame;
      |  ^~~
../UI/app.cpp:634:2: error: 'total' was not declared in this scope
  634 |  total = 0;
      |  ^~~~~
../UI/app.cpp:671:26: error: 'e' was not declared in this scope
  671 |     ret = SDL_WaitEvent(&e);
      |                          ^
../UI/app.cpp:671:11: error: 'SDL_WaitEvent' was not declared in this scope
  671 |     ret = SDL_WaitEvent(&e);
      |           ^~~~~~~~~~~~~
../UI/app.cpp:676:34: error: 'e' was not declared in this scope
  676 |      ret = SDL_WaitEventTimeout(&e, SLEEP_MENU);
      |                                  ^
../UI/app.cpp:676:12: error: 'SDL_WaitEventTimeout' was not declared in this scope
  676 |      ret = SDL_WaitEventTimeout(&e, SLEEP_MENU);
      |            ^~~~~~~~~~~~~~~~~~~~
../UI/app.cpp:680:34: error: 'e' was not declared in this scope
  680 |      ret = SDL_WaitEventTimeout(&e, SLEEP_POWERDOWN);
      |                                  ^
../UI/app.cpp:680:12: error: 'SDL_WaitEventTimeout' was not declared in this scope
  680 |      ret = SDL_WaitEventTimeout(&e, SLEEP_POWERDOWN);
      |            ^~~~~~~~~~~~~~~~~~~~
../UI/app.cpp:686:11: error: 'e' was not declared in this scope
  686 |     Poll(&e);
      |           ^
../UI/app.cpp:690:11: error: 'SDL_PollEvent' was not declared in this scope
  690 |     ret = SDL_PollEvent(&e);
      |           ^~~~~~~~~~~~~
../UI/app.cpp:707:4: 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:4: error: 'diff' was not declared in this scope
  717 |    diff = 0;
      |    ^~~~
../UI/app.cpp:721:4: error: 'diff' was not declared in this scope
  721 |    diff = (SDL_GetTicks() - begin) << MS_SHIFT;
      |    ^~~~
../UI/app.cpp:727:4: error: 'diff' was not declared in this scope
  727 |    diff = (FORCE_SYNC << MS_SHIFT) + 1;
      |    ^~~~
../UI/app.cpp:730:7: error: 'diff' was not declared in this scope
  730 |   if (diff < 0x80000000) {
      |       ^~~~
../UI/app.cpp:746:7: error: 'diff' was not declared in this scope
  746 |   if (diff < 0x80000000) {
      |       ^~~~
../UI/app.cpp:754:20: error: expected primary-expression before ')' token
  754 |    buffer = (Uint8*)evmgr->create_sound32(&extra);
      |                    ^
../UI/app.cpp:772:7: error: 'SDL_Delay' was not declared in this scope
  772 |       SDL_Delay(1);
      |       ^~~~~~~~~
../UI/app.cpp:802:25: error: 'e' was not declared in this scope
  802 |    ret = SDL_PollEvent(&e);
      |                         ^
../UI/app.cpp:802:10: error: 'SDL_PollEvent' was not declared in this scope
  802 |    ret = SDL_PollEvent(&e);
      |          ^~~~~~~~~~~~~
../UI/app.cpp:823:4: error: 'diff' was not declared in this scope
  823 |    diff = 0;
      |    ^~~~
../UI/app.cpp:827:4: error: 'diff' was not declared in this scope
  827 |    diff = (SDL_GetTicks() - begin) << MS_SHIFT;
      |    ^~~~
../UI/app.cpp:833:9: error: 'diff' was not declared in this scope
  833 |    if ((diff <= total) || (run >= SKIP_FRAMES_MAX)) {
      |         ^~~~
../UI/app.cpp:850:7: error: 'draw_tick' was not declared in this scope
  850 |       draw_tick[draw_tick_point] = SDL_GetTicks();
      |       ^~~~~~~~~
../UI/app.cpp:852:30: error: 'SDL_arraysize' was not declared in this scope
  852 |       if (draw_tick_point >= SDL_arraysize(draw_tick)) {
      |                              ^~~~~~~~~~~~~
../UI/app.cpp:855:11: 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:29: error: 'SDL_arraysize' was not declared in this scope
  855 |       if (draw_tick_count < SDL_arraysize(draw_tick)) {
      |                             ^~~~~~~~~~~~~
../UI/app.cpp:872:8: error: 'diff' was not declared in this scope
  872 |    if (diff < total) {
      |        ^~~~
../UI/app.cpp:873:33: error: 'e' was not declared in this scope
  873 |     ret = SDL_WaitEventTimeout(&e, (total - diff) >> MS_SHIFT);
      |                                 ^
../UI/app.cpp:873:11: error: 'SDL_WaitEventTimeout' was not declared in this scope
  873 |     ret = SDL_WaitEventTimeout(&e, (total - diff) >> MS_SHIFT);
      |           ^~~~~~~~~~~~~~~~~~~~
../UI/app.cpp:879:11: error: 'SDL_PollEvent' was not declared in this scope
  879 |      ret= SDL_PollEvent(&e);
      |           ^~~~~~~~~~~~~
../UI/app.cpp:894:33: error: 'mouse_tick' was not declared in this scope
  894 |   if ((Uint32)(SDL_GetTicks() - mouse_tick) >= setting->GetMouseTime()) {
      |                                 ^~~~~~~~~~
../UI/app.cpp:894:57: 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:17: error: 'class Setting' has no member named 'GetMouseTime'; did you mean 'SetMouseTime'?
  895 |    if (setting->GetMouseTime() < MOUSE_INFINITE_TIME) {
      |                 ^~~~~~~~~~~~
      |                 SetMouseTime
../UI/app.cpp:896:9: error: 'SDL_GetMouseState' was not declared in this scope
  896 |     if (SDL_GetMouseState(NULL, NULL) == 0) {
      |         ^~~~~~~~~~~~~~~~~
../UI/app.cpp:897:25: error: 'SDL_QUERY' was not declared in this scope
  897 |      if (SDL_ShowCursor(SDL_QUERY) == SDL_ENABLE) {
      |                         ^~~~~~~~~
../UI/app.cpp:897:10: error: 'SDL_ShowCursor' was not declared in this scope
  897 |      if (SDL_ShowCursor(SDL_QUERY) == SDL_ENABLE) {
      |          ^~~~~~~~~~~~~~
../UI/app.cpp:897:39: error: 'SDL_ENABLE' was not declared in this scope
  897 |      if (SDL_ShowCursor(SDL_QUERY) == SDL_ENABLE) {
      |                                       ^~~~~~~~~~
../UI/app.cpp:898:22: 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:4: 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:2: error: 'Uint32' was not declared in this scope; did you mean 'sint32'?
  924 |  Uint32 info;
      |  ^~~~~~
      |  sint32
../UI/app.cpp:927:8: error: expected ';' before 'urate'
  927 |  Uint32 urate;
      |        ^~~~~~
      |        ;
../UI/app.cpp:930:2: error: 'info' was not declared in this scope
  930 |  info = setting->GetSystems();
      |  ^~~~
../UI/app.cpp:930:18: error: 'class Setting' has no member named 'GetSystems'; did you mean 'GetSystemMode'?
  930 |  info = setting->GetSystems();
      |                  ^~~~~~~~~~
      |                  GetSystemMode
../UI/app.cpp:937:2: error: 'urate' was not declared in this scope; did you mean 'rate'?
  937 |  urate = 0;
      |  ^~~~~
      |  rate
../UI/app.cpp:939:25: error: 'draw_tick' was not declared in this scope
  939 |   point = SDL_arraysize(draw_tick) - draw_tick_count;
      |                         ^~~~~~~~~
../UI/app.cpp:939:11: error: 'SDL_arraysize' was not declared in this scope
  939 |   point = SDL_arraysize(draw_tick) - draw_tick_count;
      |           ^~~~~~~~~~~~~
../UI/app.cpp:939:38: 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:2: error: 'SDL_PowerState' was not declared in this scope
  972 |  SDL_PowerState state;
      |  ^~~~~~~~~~~~~~
../UI/app.cpp:977:21: error: 'SDL_arraysize' was not declared in this scope
  977 |   for (loop=0; loop<SDL_arraysize(power_level); loop++) {
      |                     ^~~~~~~~~~~~~
../UI/app.cpp:998:2: error: 'state' was not declared in this scope; did you mean 'static'?
  998 |  state = SDL_GetPowerInfo(NULL, &pct);
      |  ^~~~~
      |  static
../UI/app.cpp:998:10: error: 'SDL_GetPowerInfo' was not declared in this scope
  998 |  state = SDL_GetPowerInfo(NULL, &pct);
      |          ^~~~~~~~~~~~~~~~
../UI/app.cpp:1000:15: error: 'SDL_POWERSTATE_ON_BATTERY' was not declared in this scope
 1000 |  if (state != SDL_POWERSTATE_ON_BATTERY) {
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~
../UI/app.cpp:1002:21: error: 'SDL_arraysize' was not declared in this scope
 1002 |   for (loop=0; loop<SDL_arraysize(power_level); loop++) {
      |                     ^~~~~~~~~~~~~
../UI/app.cpp:1010:24: error: 'SDL_arraysize' was not declared in this scope
 1010 |   if (power_pointer == SDL_arraysize(power_level)) {
      |                        ^~~~~~~~~~~~~
../UI/app.cpp:1017:20: error: 'SDL_arraysize' was not declared in this scope
 1017 |  for (loop=0; loop<SDL_arraysize(power_level); loop++) {
      |                    ^~~~~~~~~~~~~
../UI/app.cpp:1020:9: 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 'sint8'?
 1645 | void App::GetKeyVM(Uint8 *buf)
      |                    ^~~~~
      |                    sint8
../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 'sint32'?
 1654 | Uint32 App::GetKeyCode(Uint32 port, Uint32 bit)
      | ^~~~~~
      | sint32
../UI/app.cpp: In member function 'void App::FullScreen()':
../UI/app.cpp:1670:32: 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:40: error: 'SDL_WINDOW_FULLSCREEN_DESKTOP' was not declared in this scope
 1670 |  ret = SDL_SetWindowFullscreen(window, SDL_WINDOW_FULLSCREEN_DESKTOP);
      |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../UI/app.cpp:1670:8: error: 'SDL_SetWindowFullscreen' was not declared in this scope
 1670 |  ret = SDL_SetWindowFullscreen(window, SDL_WINDOW_FULLSCREEN_DESKTOP);
      |        ^~~~~~~~~~~~~~~~~~~~~~~
../UI/app.cpp:1675:3: 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:32: error: 'window' was not declared in this scope; did you mean 'OnWindow'?
 1696 |  ret = SDL_SetWindowFullscreen(window, 0);
      |                                ^~~~~~
      |                                OnWindow
../UI/app.cpp:1696:8: error: 'SDL_SetWindowFullscreen' was not declared in this scope
 1696 |  ret = SDL_SetWindowFullscreen(window, 0);
      |        ^~~~~~~~~~~~~~~~~~~~~~~
../UI/app.cpp:1701:3: 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:9: error: 'draw_tick' was not declared in this scope
 1742 |  memset(draw_tick, 0, sizeof(draw_tick));
      |         ^~~~~~~~~
../UI/app.cpp:1743:2: 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:20: error: 'window' was not declared in this scope; did you mean 'OnWindow'?
 1782 |  SDL_SetWindowSize(window, width, height);
      |                    ^~~~~~
      |                    OnWindow
../UI/app.cpp:1782:2: error: 'SDL_SetWindowSize' was not declared in this scope
 1782 |  SDL_SetWindowSize(window, width, height);
      |  ^~~~~~~~~~~~~~~~~
../UI/app.cpp:1785:2: 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:2: error: 'system_info' was not declared in this scope
 1799 |  system_info = setting->GetSystems();
      |  ^~~~~~~~~~~
../UI/app.cpp:1799:25: error: 'class Setting' has no member named 'GetSystems'; did you mean 'GetSystemMode'?
 1799 |  system_info = setting->GetSystems();
      |                         ^~~~~~~~~~
      |                         GetSystemMode
../UI/app.cpp:1802:17: error: 'SDL_ENABLE' was not declared in this scope
 1802 |  SDL_ShowCursor(SDL_ENABLE);
      |                 ^~~~~~~~~~
../UI/app.cpp:1802:2: 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:2: error: 'mouse_tick' was not declared in this scope
 1827 |  mouse_tick = SDL_GetTicks();
      |  ^~~~~~~~~~
../UI/app.cpp:1827:15: error: 'SDL_GetTicks' was not declared in this scope
 1827 |  mouse_tick = SDL_GetTicks();
      |               ^~~~~~~~~~~~
../UI/app.cpp:1841:16: error: 'class Setting' has no member named 'GetSystems'; did you mean 'GetSystemMode'?
 1841 |   if (setting->GetSystems() != system_info) {
      |                ^~~~~~~~~~
      |                GetSystemMode
../UI/app.cpp:1841:32: error: 'system_info' was not declared in this scope
 1841 |   if (setting->GetSystems() != system_info) {
      |                                ^~~~~~~~~~~
../UI/app.cpp:1843:27: 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:10: 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:9: error: 'state_path' was not declared in this scope
 2078 |  strcpy(state_path, setting->GetSettingDir());
      |         ^~~~~~~~~~
../UI/app.cpp:2102:11: error: 'draw_tick' was not declared in this scope
 2102 |    memset(draw_tick, 0, sizeof(draw_tick));
      |           ^~~~~~~~~
../UI/app.cpp:2103:4: 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:9: 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:9: 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:6: error: 'vm_sem' was not declared in this scope
 2219 |  if (vm_sem != NULL) {
      |      ^~~~~~
../UI/app.cpp:2220:3: 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:6: error: 'vm_sem' was not declared in this scope
 2230 |  if (vm_sem != NULL) {
      |      ^~~~~~
../UI/app.cpp:2231:3: 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 'sint32'?
 2239 | Uint32 App::GetAppVersion()
      | ^~~~~~
      | sint32
gmake: *** [makefile:41: ../UI/app.o] Error 1
*** Error code 2

Stop.
bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/emulators/xm8
*** Error code 1

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/emulators/xm8