Add C89 stdint compatibility

This commit is contained in:
Nishi 2026-06-18 08:33:32 +09:00
commit 27224cdd4c
4 changed files with 100 additions and 9 deletions

View file

@ -40,17 +40,18 @@
#define _SJ_TYPEDEF 1
#include <sys/types.h>
#include "sj_stdint.h"
typedef unsigned char TypeGroup;
typedef unsigned char TypeGram;
typedef unsigned short TypeIdxOfs;
typedef uint8_t TypeGroup;
typedef uint8_t TypeGram;
typedef uint16_t TypeIdxOfs;
typedef short TypeDicSeg;
typedef unsigned short TypeDicOfs;
typedef uint16_t TypeDicOfs;
typedef ino_t TypeDicID;
typedef unsigned char TypeCnct;
typedef unsigned short TypeStyNum;
typedef unsigned char TypeClass;
typedef unsigned char TypeBunNum;
typedef uint8_t TypeCnct;
typedef uint16_t TypeStyNum;
typedef uint8_t TypeClass;
typedef uint8_t TypeBunNum;
#ifndef NULL
# define NULL 0