pkgsrc-wip/tendra/patches/patch-ax
Thomas Klausner 12732c7ca0 Initial import of (incomplete) tendra package, provided by
Alistair Crooks (agc@netbsd) -- help welcome.

tendra is a multi-targetted BSD-licensed C and C++ compiler.

Alistair says:
At the moment, it can't handle the RENAME()s in NetBSD's header files,
and I build things in a ${WRKSRC}/build directory, and these files need
to be moved to ${PREFIX} in the install stage. The files should also be
checked to see if there are any embedded hardcoded paths, which would
make this approach infeasible.
2003-04-29 09:22:27 +00:00

35 lines
859 B
Text

$NetBSD: patch-ax,v 1.1.1.1 2003/04/29 09:22:28 thomasklausner Exp $
--- /dev/null 2003-04-28 12:37:58.000000000 +0100
+++ src/lib/machines/netbsd/80x86/startup/ansi.h 2003-04-28 12:36:42.000000000 +0100
@@ -0,0 +1,30 @@
+#pragma TenDRA begin
+#pragma TenDRA directive assert allow
+#pragma TenDRA directive unassert allow
+#pragma TenDRA directive include_next allow
+#pragma TenDRA longlong type allow
+#pragma TenDRA no external declaration allow
+
+#ifndef __NO_BUILTIN_ASSERTIONS
+#assert machine(i386)
+#assert cpu(i386)
+#assert system(unix)
+#assert system(NetBSD)
+#unassert lint
+#endif
+
+#define unix 1
+#define i386 1
+#define __unix 1
+#define __i386 1
+#define __unix__ 1
+#define __i386__ 1
+#define __NetBSD__ 2
+
+#ifndef __inline
+#pragma TenDRA keyword __inline for inline
+#endif
+
+#ifndef __signed
+#define __signed signed
+#endif