mirror of
https://github.com/zeldaret/st
synced 2026-05-27 16:13:13 -04:00
c98c03de39
* match wstring.c * match math_api.c, mbstring.c, mem.c and mem_funcs.c * more progress * build issues * fix non-matching issues * reorganise files * match fdlibm (+ libc progress) * fix jp build * solved some non-matchings and progress * removed types.h usage in libc * match data and add missing delinks for jp
36 lines
495 B
C
36 lines
495 B
C
#ifndef _C_STDDEF_H
|
|
#define _C_STDDEF_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifndef NULL
|
|
#define NULL 0
|
|
#endif
|
|
|
|
#ifndef nullptr
|
|
#define nullptr 0
|
|
#endif
|
|
|
|
#define offsetof(ST, M) ((size_t) &(((ST *) 0)->M))
|
|
|
|
typedef signed long intptr_t;
|
|
typedef unsigned long uintptr_t;
|
|
typedef intptr_t ptrdiff_t;
|
|
|
|
typedef unsigned int size_t;
|
|
|
|
#ifndef __cplusplus
|
|
typedef int bool;
|
|
typedef unsigned short wchar_t;
|
|
#define true 1
|
|
#define false 0
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|