add supprt for newlib, add netinlude, ... lotta changes

This commit is contained in:
bebbo
2018-05-12 22:09:16 +02:00
parent c5fd28d82a
commit 50e643b32f
10 changed files with 249 additions and 150 deletions
@@ -1,20 +1,11 @@
--- NDK_3.9/Include/include_h/devices/timer.h Wed Aug 30 16:13:01 1995
+++ NDK_3.9/Include/include_h/devices/timer.h Sat Aug 10 15:53:59 1996
@@ -27,10 +27,17 @@
#define TIMERNAME "timer.device"
+#ifndef _SYS_TIME_H_
+/* Use whatever was included first, standard (sys/time.h) or Amiga
+ * includes (jch). */
struct timeval {
--- /old/Include/include_h/devices/timer.h 2001-12-17 14:03:44.000000000 +0100
+++ /new/Include/include_h/devices/timer.h 2018-05-07 09:55:38.850775200 +0200
@@ -31,6 +31,8 @@
ULONG tv_secs;
ULONG tv_micro;
};
+#else
+#define tv_secs tv_sec
+#define tv_micro tv_usec
+#endif
+#define tv_sec tv_secs
+#define tv_usec tv_micro
struct EClockVal {
ULONG ev_hi;
@@ -0,0 +1,30 @@
--- /old/Include/include_h/intuition/classes.h 2001-12-17 14:16:30.000000000 +0100
+++ /new/Include/include_h/intuition/classes.h 2018-05-09 20:00:44.813785900 +0200
@@ -48,7 +48,12 @@
ULONG cl_ObjectCount; /* Number of objects */
ULONG cl_Flags;
-} Class;
+}
+#ifdef __OBJC__
+ IntuitionClass;
+#else
+ Class;
+#endif
#define CLF_INLIST 0x00000001L
/* class is in public class list */
@@ -106,7 +111,12 @@
{
struct Library cl_Lib; /* Embedded library */
UWORD cl_Pad; /* Align the structure */
- Class *cl_Class; /* Class pointer */
+#ifdef __OBJC__
+ IntuitionClass
+#else
+ Class
+#endif
+ *cl_Class; /* Class pointer */
};