EasyRPG / liblcf

Library to handle RPG Maker 2000/2003 and EasyRPG projects
https://easyrpg.org
MIT License
113 stars 52 forks source link

Generator: Make int types available for References #462

Closed carstene1ns closed 1 year ago

carstene1ns commented 1 year ago

Fixes the following build error (for Wii, g++ 13.1.0):

In file included from /var/lib/jenkins/workspace/liblcf-wii/src/generated/rpg_encounter.cpp:13:
/var/lib/jenkins/workspace/liblcf-wii/src/generated/lcf/rpg/encounter.h:26:17: error: 'int32_t' does not name a type
   26 |                 int32_t troop_id = 0;
      |                 ^~~~~~~
/var/lib/jenkins/workspace/liblcf-wii/src/generated/lcf/rpg/encounter.h:15:1: note: 'int32_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
   14 | #include "lcf/context.h"
  +++ |+#include <cstdint>
   15 | #include <ostream>
carstene1ns commented 1 year ago

I did not want to introduce this change as we use the C header everywhere.

Actually is a quirk we have here.

https://stackoverflow.com/a/13643019