fish-shell/fish-rust/src/compat.c
Johannes Altmanninger ec176dc07e Port path.h
2023-04-21 13:57:29 +02:00

23 lines
350 B
C

#include <stdint.h>
#include <stdlib.h>
#include <term.h>
size_t C_MB_CUR_MAX() { return MB_CUR_MAX; }
int has_cur_term() { return cur_term != NULL; }
uint64_t C_ST_LOCAL() {
#if defined(ST_LOCAL)
return ST_LOCAL;
#else
return 0;
#endif
}
uint64_t C_MNT_LOCAL() {
#if defined(MNT_LOCAL)
return MNT_LOCAL;
#else
return 0;
#endif
}