#define strdup __dw_strdup
#endif
+#ifndef EINTR
+#define EINTR 0
+#endif
+
#ifdef __VBCC__
int isatty(int fd){
return 0;
proc_esc();
}
<DQ>\" {
- yylval.node.string = strdup(str);
+ yylval.node.string = __dw_strdup(str);
yylval.node.nodes = NULL;
yylval.node.ident = NULL;
yylval.node.type = 'S';
proc_esc();
}
<SQ>\' {
- yylval.node.string = strdup(str);
+ yylval.node.string = __dw_strdup(str);
yylval.node.nodes = NULL;
yylval.node.ident = NULL;
yylval.node.type = 'S';
}
[ \t]*#.* { return (COMMENT); }
[a-zA-Z_][a-zA-Z0-9_\-]+ {
- yylval.node.ident = strdup(yytext);
+ yylval.node.ident = __dw_strdup(yytext);
yylval.node.nodes = NULL;
yylval.node.string = NULL;
yylval.node.type = 'I';
#endif
#endif
+#ifdef DJGPP
+#define off_t uint64_t
+#endif
+
char* __dw_strdup(const char* a) {
char* str = malloc(strlen(a) + 1);
memcpy(str, a, strlen(a));
#elif defined(__VBCC__)
+#elif defined(DJGPP)
#elif defined(__MINGW32__)
OVERLAPPED overlap = {0};
LockFileEx(db->fp, LOCKFILE_EXCLUSIVE_LOCK, 0, MAXDWORD, MAXDWORD, &overlap);
#elif defined(__VBCC__)
+#elif defined(DJGPP)
#elif defined(__MINGW32__)
OVERLAPPED overlap = {0};
UnlockFileEx(db->fp, 0, MAXDWORD, MAXDWORD, &overlap);
--- /dev/null
+# $Id$
+# PLATFORM: DJGPP
+
+CC = i586-pc-msdosdjgpp-gcc
+SHCC = true
+AR = i586-pc-msdosdjgpp-ar
+SERVER =
+RCLI =
+EXEC_SUFFIX = .exe