kolibrios/programs/fs/unzip60/kolibri/config.h
siemargl f3754c9c3b base unicode version
git-svn-id: svn://kolibrios.org@6764 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-11-26 16:00:49 +00:00

52 lines
1.4 KiB
C

/*
Kolibri OS config for gcc 5.4
Started by Siemargl @Nov 2016
*/
#include <sys/types.h> /* off_t, time_t, dev_t, ... */
#include <sys/stat.h>
#include <sys/kos_io.h> /* lseek(), open(), setftime(), dup(), creat() */
#include <time.h> /* localtime() */
#include <fcntl.h> /* O_BINARY for open() w/o CR/LF translation */
#include <sys/time.h>
#include <unistd.h>
#include <dirent.h>
#define DIR_END '/'
#define NO_STRNICMP
#define STRNICMP zstrnicmp
#define NO_CHMOD
#define NO_FCHOWN
#define echoff(f)
#define echon()
#define getch() getchar() /* not correct, but may not be on a console */
#define HAVE_WORKING_GETCH
#define UNICODE_SUPPORT
#define UTF8_MAYBE_NATIVE
#define NO_NL_LANGINFO
/*
# ifdef DATE_FORMAT
# undef DATE_FORMAT
# endif
# define DATE_FORMAT dateformat()
*/
#define lenEOL 2
#define PutNativeEOL {*q++ = native(CR); *q++ = native(LF);}
/*
# if (!defined(NO_EF_UT_TIME) && !defined(USE_EF_UT_TIME))
# define USE_EF_UT_TIME
# endif
*/
/* Static variables that we have to add to Uz_Globs: */
#define SYSTEM_SPECIFIC_GLOBALS \
int created_dir, renamed_fullpath;\
char *rootpath, *buildpath, *end;\
ZCONST char *wildname;\
char *dirname, matchname[FILNAMSIZ];\
int rootlen, have_dirname, dirnamelen, notfirstcall;\
zvoid *wild_dir;