ObjFW  Check-in [77945f04a6]

Overview
Comment:runtime/linklib: Fix compilation on MorphOS
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 77945f04a69dca1be4895a22223059e346992635b3f45438da6f5db2edc12b2f
User & Date: js on 2019-05-05 22:22:29
Other Links: manifest | tags
Context
2019-05-05
22:29
socket.h: Add typedefs missing on MorphOS check-in: a407b8b2b7 user: js tags: trunk
22:22
runtime/linklib: Fix compilation on MorphOS check-in: 77945f04a6 user: js tags: trunk
21:40
configure: Don't use -pipe on MorphOS check-in: 2670c4637e user: js tags: trunk
Changes

Modified src/runtime/linklib/linklib.m from [824a5b579c] to [e8efb8926f].

24
25
26
27
28
29
30
31

32


33
34
35
36
37
38
39
24
25
26
27
28
29
30

31
32
33
34
35
36
37
38
39
40
41







-
+

+
+







#include <proto/exec.h>

#import "inline.h"

#include <stdio.h>
#include <stdlib.h>

#ifdef OF_AMIGAOS_M68K
#if defined(OF_AMIGAOS_M68K)
# include <stabs.h>
#elif defined(OF_MORPHOS)
# include <constructor.h>
#endif

#ifdef HAVE_SJLJ_EXCEPTIONS
extern int _Unwind_SjLj_RaiseException(void *);
#else
extern int _Unwind_RaiseException(void *);
#endif
116
117
118
119
120
121
122
123
124











125
126
127
128
129
130
131
118
119
120
121
122
123
124


125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142







-
-
+
+
+
+
+
+
+
+
+
+
+







	CloseLibrary(ObjFWRTBase);
}

#if defined(OF_AMIGAOS_M68K)
ADD2INIT(ctor, -2);
ADD2EXIT(dtor, -2);
#elif defined(OF_MORPHOS)
CONSTRUCTOR_P(ctor, -2);
DESTRUCTOR_P(dtor, -2);
CONSTRUCTOR_P(ObjFWRT, 4000)
{
	ctor();

	return 0;
}

DESTRUCTOR_P(ObjFWRT, 4000)
{
	dtor();
}
#endif

void
__objc_exec_class(void *module)
{
	/*
	 * The compiler generates constructors that call into this, so it is